AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Aqua::CalcServer::ArgSetter Class Reference

#include <Kernel.hpp>

Inheritance diagram for Aqua::CalcServer::ArgSetter:
Collaboration diagram for Aqua::CalcServer::ArgSetter:

Data Structures

class  Arg

Public Member Functions

 ArgSetter (const std::string name, cl_kernel kernel, std::vector< InputOutput::Variable * > vars)
 ~ArgSetter ()
cl_kernel getKernel () const
 Get the OpenCL kernel.
std::vector< InputOutput::Variable * > getVars () const
 Get the list of variables to be set.
std::vector< ArggetArgs () const
 Get the list of variables to be set.
void execute ()
 Set the kernel arguments.
Public Member Functions inherited from Aqua::CalcServer::Named
 Named (const std::string name)
 ~Named ()
void name (const std::string tool_name)
const std::string name () const
 Get the name.

Constructor & Destructor Documentation

◆ ArgSetter()

Aqua::CalcServer::ArgSetter::ArgSetter ( const std::string name,
cl_kernel kernel,
std::vector< InputOutput::Variable * > vars )

Constructor.

Parameters
nameA name for logging purposes. Usually the same than the owner tool
kernelThe OpenCL kernel.
varsThe 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.
Here is the call graph for this function:

◆ ~ArgSetter()

Aqua::CalcServer::ArgSetter::~ArgSetter ( )
inline

Destructor

Member Function Documentation

◆ 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
Here is the call graph for this function:

◆ 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()

std::vector< InputOutput::Variable * > Aqua::CalcServer::ArgSetter::getVars ( ) const
inline

Get the list of variables to be set.

Returns
The list of variables

The documentation for this class was generated from the following files: