24#ifndef KERNEL_H_INCLUDED
25#define KERNEL_H_INCLUDED
53 Kernel(
const std::string tool_name,
54 const std::string kernel_path,
55 const std::string entry_point =
"entry",
56 const std::string n =
"N",
71 const std::string
path() {
return (
const std::string)_path; }
88 cl_event
_execute(
const std::vector<cl_event> events);
97 void make(
const std::string entry_point =
"entry",
98 const std::string flags =
"",
99 const std::string header =
"");
105 void variables(
const std::string entry_point =
"main");
123 std::string _entry_point;
132 size_t _work_group_size;
135 size_t _global_work_size;
138 std::vector<std::string> _var_names;
140 std::vector<void*> _var_values;
A tool consisting in an OpenCL kernel execution. The variables used in the OpenCL kernel are automati...
Definition: Kernel.h:45
void setVariables()
Set the variables to the OpenCL kernel.
Definition: Kernel.cpp:361
size_t workGroupSize() const
Definition: Kernel.h:76
void variables(const std::string entry_point="main")
Definition: Kernel.cpp:265
cl_event _execute(const std::vector< cl_event > events)
Definition: Kernel.cpp:76
void make(const std::string entry_point="entry", const std::string flags="", const std::string header="")
Definition: Kernel.cpp:109
size_t globalWorkSize() const
Definition: Kernel.h:81
const std::string path()
Definition: Kernel.h:71
void computeGlobalWorkSize()
Definition: Kernel.cpp:400
void setup()
Definition: Kernel.cpp:61
virtual ~Kernel()
Definition: Kernel.cpp:49
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45
Set of definitions and macros related with the implementation.