18 #ifndef __itkOpenCLUtil_h
19 #define __itkOpenCLUtil_h
32 #include <OpenCL/opencl.h>
36 #include <CL/opencl.h>
66 void OpenCLCheckError(cl_int error,
const char* filename=
"",
int lineno=0,
const char* location=
"");
72 std::string
GetTypename(
const std::type_info& intype);
75 bool GetValidTypename(
const std::type_info& intype,
const std::vector<std::string>& validtypes, std::string& retTypeName);
std::string GetTypename(const std::type_info &intype)
cl_platform_id OpenCLSelectPlatform(const char *name)
void GetTypenameInString(const std::type_info &intype, std::ostringstream &ret)
int OpenCLGetLocalBlockSize(unsigned int ImageDim)
void OpenCLPrintDeviceInfo(cl_device_id device, bool verbose=false)
cl_device_id OpenCLGetMaxFlopsDev(cl_context cxGPUContext)
int GetPixelDimension(const std::type_info &intype)
cl_device_id * OpenCLGetAvailableDevices(cl_platform_id platform, cl_device_type devType, cl_uint *numAvailableDevices)
bool GetValidTypename(const std::type_info &intype, const std::vector< std::string > &validtypes, std::string &retTypeName)
std::string Get64BitPragma()
void OpenCLCheckError(cl_int error, const char *filename="", int lineno=0, const char *location="")