25#ifndef TOOL_H_INCLUDED
26#define TOOL_H_INCLUDED
52 Tool(
const std::string tool_name,
bool once =
false);
61 void name(
const std::string tool_name) { _name = tool_name; };
66 const std::string
name() {
return _name; }
112 return _elapsed_time;
113 return _average_elapsed_time;
121 return _squared_elapsed_time - pow(_average_elapsed_time, 2);
162 virtual cl_event
_execute(
const std::vector<cl_event> events)
212 static std::vector<cl_kernel>
compile(
const std::string source,
213 const std::vector<std::string> names,
214 const std::string flags =
"");
233 const std::string kernel_name,
234 const std::string flags =
"");
243 const std::vector<cl_event> getEvents();
255 size_t _allocated_memory;
258 unsigned int _n_iters;
264 float _average_elapsed_time;
267 float _squared_elapsed_time;
270 std::vector<InputOutput::Variable*> _vars;
273 std::vector<cl_event> _events;
Virtual variables environment to allow the user define/manipulate the variables used in the simulatio...
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45
Set of definitions and macros related with the implementation.