Copy an array component by component.
More...
#include <CalcServer/Copy.h>
|
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.
|
|
Copy an array component by component.
◆ Copy()
Aqua::CalcServer::Copy::Copy |
( |
const std::string |
name, |
|
|
const std::string |
input_name, |
|
|
const std::string |
output_name, |
|
|
bool |
once = false |
|
) |
| |
Constructor.
- Parameters
-
name | Tool name. |
input_name | Variable to copy. |
output_name | Variable to set. |
once | Run this tool just once. Useful to make initializations. |
◆ ~Copy()
Aqua::CalcServer::Copy::~Copy |
( |
| ) |
|
◆ _execute()
cl_event Aqua::CalcServer::Copy::_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::Copy::setup |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files:
- /home/pepe/SPH/Code/aquagpusph/include/CalcServer/Copy.h
- /home/pepe/SPH/Code/aquagpusph/src/CalcServer/Copy.cpp