24#ifndef REPORTS_REPORT_H_INCLUDED
25#define REPORTS_REPORT_H_INCLUDED
60 Report(
const std::string tool_name,
82 const std::string
data(
bool with_title =
true,
bool with_names =
true,
bool synced =
false);
107 err_code = clSetUserEventStatus(user_event, status);
109 std::string(
"Failure setting as complete the tool \"") +
111 err_code = clReleaseEvent(user_event);
113 std::string(
"Failure releasing the user event in tool \"") +
125 std::vector<InputOutput::Variable*>
variables() {
return _vars; }
146 cl_event
setCallback(
const std::vector<cl_event> events,
147 void(CL_CALLBACK* cb)(cl_event, cl_int,
void*));
163 std::vector<unsigned int> _vars_per_line;
165 std::vector<InputOutput::Variable*> _vars;
168 cl_event _user_event;
#define CHECK_OCL_OR_THROW(err_code, msg)
Definition CalcServer.hpp:44
Virtual variables environment to allow the user define/manipulate the variables used in the simulatio...
const std::string name() const
Get the name.
Definition Tool.hpp:71
virtual ~Report()
Destructor.
Definition Report.cpp:49
std::vector< InputOutput::Variable * > variables()
Get the variables list.
Definition Report.hpp:125
Report(const std::string tool_name, const std::string fields, unsigned int ipf=1, float fps=0.f)
Constructor.
Definition Report.cpp:34
void setUserEventStatus(cl_int status) const
Set the user event status.
Definition Report.hpp:102
cl_event setCallback(const std::vector< cl_event > events, void(CL_CALLBACK *cb)(cl_event, cl_int, void *))
Register a callback to be executed whenever it is possible.
Definition Report.cpp:164
cl_event getUserEvent() const
Get the user event generated by this tool to mark when is finished.
Definition Report.hpp:93
virtual void setup()
Initialize the tool.
Definition Report.cpp:56
void processFields(const std::string fields)
Compute the fields by lines.
Definition Report.cpp:94
const std::string data(bool with_title=true, bool with_names=true, bool synced=false)
Return the text string of the data to be printed.
Definition Report.cpp:63
bool mustUpdate()
Check if an output must be performed.
Definition Report.cpp:134
__kernel void fields(__global const unsigned int *iset, __global const uint *isplit, __global const usize *mybuffer, __global const unsigned int *ilevel, __global const float *split_weight, __global float *m0, __global float *m, __global vec *r, __global vec *u, __global vec *dudt, __global float *rho, __global float *drhodt, __constant float *dr_level0, usize N, LINKLIST_LOCAL_PARAMS)
Collect the children, and the seed itself, in order to compute the field values of the buffer partner...
Definition Coalesce.cl:426
Runtime outputs name space.
Definition Dump.cpp:34
Calculation server name space.
Definition Assert.cpp:32
Main AQUAgpusph namespace.
Definition ArgumentsManager.cpp:50
Set of definitions and macros related with the implementation.