Program class.
More...
#include <CLKernelLibrary.h>
|
static bool | build (const cl::Program &program, const std::string &build_options="") |
|
Program class.
Definition at line 37 of file CLKernelLibrary.h.
Program |
( |
cl::Context |
context, |
|
|
std::string |
name, |
|
|
std::string |
source |
|
) |
| |
Construct program from source file.
- Parameters
-
[in] | context | CL context used to create the program. |
[in] | name | Program name. |
[in] | source | Program source. |
Program |
( |
cl::Context |
context, |
|
|
cl::Device |
device, |
|
|
std::string |
name, |
|
|
std::vector< unsigned char > |
binary |
|
) |
| |
Construct program from binary file.
- Parameters
-
[in] | context | CL context used to create the program. |
[in] | device | CL device for which the programs are created. |
[in] | name | Program name. |
[in] | binary | Program binary. |
Default Copy Constructor.
Default Move Constructor.
static bool build |
( |
const cl::Program & |
program, |
|
|
const std::string & |
build_options = "" |
|
) |
| |
|
static |
cl::Program build |
( |
const std::string & |
build_options = "" | ) |
const |
Build the underlying CL program.
- Parameters
-
[in] | build_options | Options used to build the CL program. |
- Returns
- A reference to itself.
std::string name |
( |
| ) |
const |
|
inline |
operator cl::Program |
( |
| ) |
const |
|
explicit |
User-defined conversion to the underlying CL program.
- Returns
- The CL program object.
Default copy assignment operator.
Default move assignment operator.
The documentation for this class was generated from the following file: