#include <CLProgram.hpp>
|
typedef std::vector< std::shared_ptr< Program > > | Vector |
| Vector of programs.
|
|
Implementation of the Program class for OpenCL. Use it to compile your OpenCL program to be used by the Runtime.
CLProgram::CLProgram |
( |
std::shared_ptr< Runtime > |
runtime, |
|
|
const char * |
source, |
|
|
const char * |
compilerFlags = nullptr |
|
) |
| |
Creates the program.
- Parameters
-
runtime | The Runtime instance. |
source | The source code of the program. |
compilerFlags | Flags for the compiler. If the compilation fails on all platforms, the constructor throws ProgramCompilationError. |
ProgramObjectMap& CLProgram::programObjects |
( |
| ) |
|
|
inlinevirtual |
Returns the list of available program objects for execution.
Implements Program.
The documentation for this class was generated from the following file: