AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Aqua::CalcServer::Reports Namespace Reference

Runtime outputs name space. More...

Data Structures

class  Dump
 Dump an array at any time. More...
class  Performance
 On screen performance output. More...
class  Report
 Runtime outputs base class. More...
class  Screen
 On screen runtime output. More...
class  SetTabFile
 Particles set runtime output. More...
class  TabFile
 Runtime output file. More...

Functions

void CL_CALLBACK 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.
static const std::vector< float > time_mults ({ 1.0, 1.e-3, 1.e-6, 1.e-9, 1.e-9/60, 1.e-9/3600 })
 List of time format multipliers.
static const std::vector< std::string > time_units ({ "ns", "μs", "ms", "s", "m", "h" })
 List of time units.
std::tuple< float, std::string > reformat_nanosec (float t)
 Reformat the time in nanoseconds as the best possible alternative between nanoseconds, microseconds, milliseconds, seconds minutes or hours.
void CL_CALLBACK performance_cb (cl_event event, cl_int event_command_status, void *user_data)
 Callback called when all the commands prior to Aqua::CalcServer::Performance are completed.
void CL_CALLBACK screenreport_cb (cl_event event, cl_int event_command_status, void *user_data)
 Callback called when all the variables can be read by Aqua::CalcServer::Screen.
void CL_CALLBACK settabfile_cb (cl_event event, cl_int event_command_status, void *user_data)
 Callback called when all the variables required by Aqua::CalcServer::SetTabFile have been downloaded.
void CL_CALLBACK tabfilereport_cb (cl_event event, cl_int event_command_status, void *user_data)
 Callback called when all the variables can be read by Aqua::CalcServer::TabFile.

Detailed Description

Runtime outputs name space.

Function Documentation

◆ dumpfile_cb()

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.

This function is just redirecting the work to Aqua::CalcServer::Dump::print()

Parameters
eventThe triggering event
event_command_statusCL_COMPLETE upon all dependencies successfully fulfilled. A negative integer if one or mor dependencies failed.
user_dataA casted pointer to the Aqua::CalcServer::Screen tool (or the inherited one)

◆ performance_cb()

void CL_CALLBACK Aqua::CalcServer::Reports::performance_cb ( cl_event event,
cl_int event_command_status,
void * user_data )

Callback called when all the commands prior to Aqua::CalcServer::Performance are completed.

This function is just redirecting the work to Aqua::CalcServer::Performance::print()

Parameters
eventThe triggering event
event_command_statusCL_COMPLETE upon all dependencies successfully fulfilled. A negative integer if one or mor dependencies failed.
user_dataA casted pointer to the Aqua::CalcServer::Performance tool (or the inherited one)

◆ reformat_nanosec()

std::tuple< float, std::string > Aqua::CalcServer::Reports::reformat_nanosec ( float t)

Reformat the time in nanoseconds as the best possible alternative between nanoseconds, microseconds, milliseconds, seconds minutes or hours.

Parameters
tTime in nanoseconds
Returns
The reformated time as well as the resulting units, i.e. ns, μs, ms, s, m or h
Here is the call graph for this function:

◆ screenreport_cb()

void CL_CALLBACK Aqua::CalcServer::Reports::screenreport_cb ( cl_event event,
cl_int event_command_status,
void * user_data )

Callback called when all the variables can be read by Aqua::CalcServer::Screen.

This function is just redirecting the work to InputOutput::Logger::writeReport() using the Aqua::CalcServer::Report::data() function to extract the information

Parameters
eventThe triggering event
event_command_statusCL_COMPLETE upon all dependencies successfully fulfilled. A negative integer if one or mor dependencies failed.
user_dataA casted pointer to the Aqua::CalcServer::Screen tool (or the inherited one)
Here is the call graph for this function:

◆ settabfile_cb()

void CL_CALLBACK Aqua::CalcServer::Reports::settabfile_cb ( cl_event event,
cl_int event_command_status,
void * user_data )

Callback called when all the variables required by Aqua::CalcServer::SetTabFile have been downloaded.

This function is just redirecting the work to Aqua::CalcServer::SetTabFile::print()

Parameters
eventThe triggering event
event_command_statusCL_COMPLETE upon all dependencies successfully fulfilled. A negative integer if one or mor dependencies failed.
user_dataA casted pointer to the Aqua::CalcServer::Screen tool (or the inherited one)

◆ tabfilereport_cb()

void CL_CALLBACK Aqua::CalcServer::Reports::tabfilereport_cb ( cl_event event,
cl_int event_command_status,
void * user_data )

Callback called when all the variables can be read by Aqua::CalcServer::TabFile.

This function is just redirecting the work to Aqua::CalcServer::TabFile::print()

Parameters
eventThe triggering event
event_command_statusCL_COMPLETE upon all dependencies successfully fulfilled. A negative integer if one or mor dependencies failed.
user_dataA casted pointer to the Aqua::CalcServer::Screen tool (or the inherited one)

◆ time_mults()

const std::vector< float > Aqua::CalcServer::Reports::time_mults ( { 1.0, 1.e-3, 1.e-6, 1.e-9, 1.e-9/60, 1.e-9/3600 } )
static

List of time format multipliers.

◆ time_units()

const std::vector< std::string > Aqua::CalcServer::Reports::time_units ( { "ns", "μs", "ms", "s", "m", "h" } )
static

List of time units.