AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Dump.cpp File Reference

Runtime array dumping to an output file. (See Aqua::CalcServer::Reports::Dump for details) More...

#include <sstream>
#include <fstream>
#include <iomanip>
#include "aquagpusph/AuxiliarMethods.hpp"
#include "aquagpusph/InputOutput/Logger.hpp"
#include "aquagpusph/CalcServer/CalcServer.hpp"
#include "Dump.hpp"
Include dependency graph for Dump.cpp:

Namespaces

namespace  Aqua
 Main AQUAgpusph namespace.
namespace  Aqua::CalcServer
 Calculation server name space.
namespace  Aqua::CalcServer::Reports
 Runtime outputs name space.

Macros

#define __ASCII_WRITE_SCALAR_BLOCK(TYPE)
#define __ASCII_WRITE_MATRIX_BLOCK(TYPE)
#define __ASCII_WRITE_VEC_BLOCK(TYPE)

Functions

void CL_CALLBACK Aqua::CalcServer::Reports::dumpfile_cb (cl_event event, cl_int event_command_status, void *user_data)
 Callback called when all the variables required by Aqua::CalcServer::Dump have been downloaded.

Detailed Description

Runtime array dumping to an output file. (See Aqua::CalcServer::Reports::Dump for details)

Macro Definition Documentation

◆ __ASCII_WRITE_MATRIX_BLOCK

#define __ASCII_WRITE_MATRIX_BLOCK ( TYPE)
Value:
TYPE* v = (TYPE *)ptr; \
for (unsigned int k = 0; k < nc - 1; k++) { \
f << v[i].s[k] << ' '; \
} \
f << v[i].s[nc - 1]; \

◆ __ASCII_WRITE_SCALAR_BLOCK

#define __ASCII_WRITE_SCALAR_BLOCK ( TYPE)
Value:
TYPE* v = (TYPE* )ptr; \
f << v[i];

◆ __ASCII_WRITE_VEC_BLOCK

#define __ASCII_WRITE_VEC_BLOCK ( TYPE)
Value:
if (nc == 2) { \
__ASCII_WRITE_MATRIX_BLOCK( TYPE ## 2 ) \
} else if (nc == 3) { \
__ASCII_WRITE_MATRIX_BLOCK( TYPE ## 3 ) \
} else if (nc == 4) { \
__ASCII_WRITE_MATRIX_BLOCK( TYPE ## 4 ) \
} else if (nc == 8) { \
__ASCII_WRITE_MATRIX_BLOCK( TYPE ## 8 ) \
} else if (nc == 16) { \
__ASCII_WRITE_MATRIX_BLOCK( TYPE ## 16 ) \
}