#include <Kernel.hpp>
◆ ArgSetter()
Constructor.
- Parameters
-
name | A name for logging purposes. Usually the same than the owner tool |
kernel | The OpenCL kernel. |
vars | The list of variables to be set, on the same order they appear on kernel . NULL can be passed for the arguments that are not handled by this class. |
◆ ~ArgSetter()
Aqua::CalcServer::ArgSetter::~ArgSetter |
( |
| ) |
|
|
inline |
◆ execute()
void Aqua::CalcServer::ArgSetter::execute |
( |
| ) |
|
Set the kernel arguments.
- Returns
- The event that mark when the kernel arguments has been already set. Remember to call clReleaseEvent() on this.
- Warning
- The arguments are set right after all the variables writing events are finished. Thus, waiting just for this might not be enough, but the reading events of the kernel output variables shall be waited for also
◆ getArgs()
std::vector< Arg > Aqua::CalcServer::ArgSetter::getArgs |
( |
| ) |
const |
|
inline |
Get the list of variables to be set.
- Returns
- The list of variables
◆ getKernel()
cl_kernel Aqua::CalcServer::ArgSetter::getKernel |
( |
| ) |
const |
|
inline |
Get the OpenCL kernel.
- Returns
- The OpenCL kernel
◆ getVars()
Get the list of variables to be set.
- Returns
- The list of variables
The documentation for this class was generated from the following files:
- /home/pepe/SPH/Code/aquagpusph/aquagpusph/CalcServer/Kernel.hpp
- /home/pepe/SPH/Code/aquagpusph/aquagpusph/CalcServer/Kernel.cpp