#include <opencl_program.h>
Public Member Functions | |
Program (std::shared_ptr< State > const &pState, char const *const *const filenames, char const *const options, char const *const logFilename=NULL) | |
Constructs and builds an OpenCL program. | |
cl_program | BuiltProgram () const |
Returns built OpenCL program. |
OpenCL program class.
The constructor attempts to create and build a program from a list of source files. If any of the OpenCL calls which perform this task fail, than an OpenCL Exception will be thrown. The compiled program can be accessed via the BuiltProgram
accessor function.
Definition at line 53 of file opencl_program.h.
OpenCL::Program::Program | ( | std::shared_ptr< State > const & | pState, |
char const *const *const | filenames, | ||
char const *const | options, | ||
char const *const | logFilename = NULL |
||
) |
Constructs and builds an OpenCL program.
pState | Pointer to the OpenCL State for which to build this program. |
filenames | NULL -terminated list of '\0' -terminated strings containing the files to build (each containing OpenCL source). |
options | Compiler options to pass to clBuildProgram . |
logFilename | File to which to write a build log, on failure. If NULL, no log will be written. |
Definition at line 43 of file opencl_program.cpp.