18#ifndef itkOpenCLProgram_h
19#define itkOpenCLProgram_h
66 return this->m_Id == 0;
73 return this->m_Context;
87 return this->m_FileName;
97 Build(
const std::string & extraBuildOptions = std::string());
110 Build(
const std::list<OpenCLDevice> & devices,
const std::string & extraBuildOptions = std::string());
119 std::list<OpenCLDevice>
129 std::list<OpenCLKernel>
151template <
typename charT,
typename traits>
152inline std::basic_ostream<charT, traits> &
157 strm <<
"OpenCLProgram(null)";
161 const char indent =
' ';
163 strm <<
"OpenCLProgram\n" << indent <<
"Id: " << program.
GetProgramId() << std::endl;
The OpenCLContext class represents an OpenCL context.
The OpenCLKernel class represents an executable entry point function in an OpenCL program.
The OpenCLProgram class represents an OpenCL program object.
OpenCLKernel CreateKernel(const std::string &name) const
OpenCLContext * m_Context
std::string GetLog() const
std::string GetFileName() const
OpenCLProgram(const OpenCLProgram &other)
OpenCLContext * GetContext() const
OpenCLProgram(OpenCLContext *context, cl_program id, const std::string &fileName=std::string())
bool Build(const std::list< OpenCLDevice > &devices, const std::string &extraBuildOptions=std::string())
bool Build(const std::string &extraBuildOptions=std::string())
std::list< OpenCLKernel > CreateKernels() const
OpenCLProgram & operator=(const OpenCLProgram &other)
cl_program GetProgramId() const
std::list< OpenCLDevice > GetDevices() const
bool ITKOpenCL_EXPORT operator==(const OpenCLCommandQueue &lhs, const OpenCLCommandQueue &rhs)
bool ITKOpenCL_EXPORT operator!=(const OpenCLCommandQueue &lhs, const OpenCLCommandQueue &rhs)
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &strm, const OpenCLCommandQueue &queue)