On screen runtime output.
More...
#include <CalcServer/Screen.h>
|
| Screen (const std::string tool_name, const std::string fields, const std::string color="white", bool bold=false) |
| Constructor.
|
|
| ~Screen () |
| Destructor.
|
|
void | setup () |
| Initialize the tool.
|
|
| Report (const std::string tool_name, const std::string fields, unsigned int ipf=1, float fps=0.f) |
| Constructor.
|
|
virtual | ~Report () |
| Destructor.
|
|
virtual void | setup () |
| Initialize the tool.
|
|
const std::string | data (bool with_title=true, bool with_names=true) |
| Return the text string of the data to be printed.
|
|
| Tool (const std::string tool_name, bool once=false) |
|
virtual | ~Tool () |
|
void | name (const std::string tool_name) |
|
const std::string | name () |
|
virtual void | setup () |
|
virtual void | execute () |
| Execute the tool measuring the elapsed time.
|
|
virtual Tool * | next_tool () |
|
size_t | allocatedMemory () const |
|
unsigned int | used_times () const |
|
float | elapsedTime (bool averaged=true) const |
|
float | elapsedTimeVariance () const |
|
float | elapsedTimeDeviation () const |
|
virtual const int | scope_modifier () |
|
|
static std::vector< cl_kernel > | compile (const std::string source, const std::vector< std::string > names, const std::string flags="") |
| Compile an OpenCL source code and generate the corresponding kernel.
|
|
static cl_kernel | compile_kernel (const std::string source, const std::string kernel_name, const std::string flags="") |
| Compile an OpenCL source code and generate the corresponding kernel.
|
|
On screen runtime output.
A runtime output is an output value that:
- Is composed by a relatively low amount of memory
- Its computation is not taking too much time Therefore it could be computed and printed oftenly.
- See also
- Aqua::InputOutput::Logger
◆ Screen()
Aqua::CalcServer::Reports::Screen::Screen |
( |
const std::string |
tool_name, |
|
|
const std::string |
fields, |
|
|
const std::string |
color = "white" , |
|
|
bool |
bold = false |
|
) |
| |
Constructor.
- Parameters
-
tool_name | Tool name. |
fields | Fields to be printed. The fields are separated by commas or semicolons, and the spaces are just ignored. The semicolons will also force a line break in the report. |
color | Output color. |
bold | true if the text should be highlighted as bold text, false otherwise. |
◆ ~Screen()
Aqua::CalcServer::Reports::Screen::~Screen |
( |
| ) |
|
◆ _execute()
cl_event Aqua::CalcServer::Reports::Screen::_execute |
( |
const std::vector< cl_event > |
events | ) |
|
|
protectedvirtual |
Execute the tool
- Parameters
-
events | List of events that shall be waited before safe execution |
- Returns
- OpenCL event to be waited before accessing the dependencies
Reimplemented from Aqua::CalcServer::Tool.
◆ setup()
void Aqua::CalcServer::Reports::Screen::setup |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files:
- /home/pepe/SPH/Code/aquagpusph/include/CalcServer/Reports/Screen.h
- /home/pepe/SPH/Code/aquagpusph/src/CalcServer/Reports/Screen.cpp