18#ifndef __itkOpenCLProgram_h
19#define __itkOpenCLProgram_h
51 const std::string & fileName = std::string() );
64 bool IsNull()
const {
return this->m_Id == 0; }
81 bool Build(
const std::string & extraBuildOptions = std::string() );
93 bool Build(
const std::list< OpenCLDevice > & devices,
94 const std::string & extraBuildOptions = std::string() );
130template<
typename charT,
typename traits >
132std::basic_ostream< charT, traits > &
133operator<<( std::basic_ostream< charT, traits > & strm,
138 strm <<
"OpenCLProgram(null)";
142 const char indent =
' ';
144 strm <<
"OpenCLProgram" << std::endl
145 << 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)