ParallelME Runtime Environment
Public Member Functions | List of all members
CLProgram Class Reference

#include <CLProgram.hpp>

Inheritance diagram for CLProgram:
Program

Public Member Functions

 CLProgram (std::shared_ptr< Runtime > runtime, const char *source, const char *compilerFlags=nullptr)
 
ProgramObjectMap & programObjects ()
 
- Public Member Functions inherited from Program
 Program (const Program &)=delete
 
Programoperator= (const Program &)=delete
 

Additional Inherited Members

- Public Types inherited from Program
typedef std::vector< std::shared_ptr< Program > > Vector
 Vector of programs.
 

Detailed Description

Implementation of the Program class for OpenCL. Use it to compile your OpenCL program to be used by the Runtime.

Constructor & Destructor Documentation

CLProgram::CLProgram ( std::shared_ptr< Runtime runtime,
const char *  source,
const char *  compilerFlags = nullptr 
)

Creates the program.

Parameters
runtimeThe Runtime instance.
sourceThe source code of the program.
compilerFlagsFlags for the compiler. If the compilation fails on all platforms, the constructor throws ProgramCompilationError.

Member Function Documentation

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: