24.02.1
|
#include <CLCompileContext.h>
Public Member Functions | |
Program () | |
Default constructor. More... | |
Program (cl::Context context, std::string name, std::string source) | |
Construct program from source file. More... | |
Program (cl::Context context, cl::Device device, std::string name, std::vector< unsigned char > binary) | |
Construct program from binary file. More... | |
Program (const Program &)=default | |
Default Copy Constructor. More... | |
Program (Program &&)=default | |
Default Move Constructor. More... | |
Program & | operator= (const Program &)=default |
Default copy assignment operator. More... | |
Program & | operator= (Program &&)=default |
Default move assignment operator. More... | |
std::string | name () const |
Returns program name. More... | |
const std::vector< unsigned char > & | binary () const |
Returns program binary data. More... | |
operator cl::Program () const | |
User-defined conversion to the underlying CL program. More... | |
cl::Program | build (const std::string &build_options="") const |
Build the underlying CL program. More... | |
Static Public Member Functions | |
static bool | build (const cl::Program &program, const std::string &build_options="") |
Build the given CL program. More... | |
Program class.
Definition at line 87 of file CLCompileContext.h.
Program | ( | ) |
Default constructor.
Definition at line 82 of file CLCompileContext.cpp.
Program | ( | cl::Context | context, |
std::string | name, | ||
std::string | source | ||
) |
Construct program from source file.
[in] | context | CL context used to create the program. |
[in] | name | Program name. |
[in] | source | Program source. |
Definition at line 86 of file CLCompileContext.cpp.
Program | ( | cl::Context | context, |
cl::Device | device, | ||
std::string | name, | ||
std::vector< unsigned char > | binary | ||
) |
Construct program from binary file.
[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. |
Definition at line 96 of file CLCompileContext.cpp.
|
inline |
Returns program binary data.
Definition at line 127 of file CLCompileContext.h.
|
static |
Build the given CL program.
[in] | program | The CL program to build. |
[in] | build_options | Options to build the CL program. |
Definition at line 118 of file CLCompileContext.cpp.
References build_options.
Referenced by Program::build(), and CLCompileContext::create_kernel().
cl::Program build | ( | const std::string & | build_options = "" | ) | const |
Build the underlying CL program.
[in] | build_options | Options used to build the CL program. |
Definition at line 138 of file CLCompileContext.cpp.
References Program::build(), and build_options.
|
inline |
|
explicit |
User-defined conversion to the underlying CL program.
Definition at line 106 of file CLCompileContext.cpp.