18#ifndef itkOpenCLUtil_h
19#define itkOpenCLUtil_h
30#ifndef CL_TARGET_OPENCL_VERSION
31# define CL_TARGET_OPENCL_VERSION 120
36# include <OpenCL/opencl.h>
40# include <CL/opencl.h>
76OpenCLCheckError(cl_int error,
const char * filename =
"",
int lineno = 0,
const char * location =
"");
88GetValidTypename(
const std::type_info & intype,
const std::vector<std::string> & validtypes, std::string & retTypeName);
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
cl_device_id * OpenCLGetAvailableDevices(cl_platform_id platform, cl_device_type devType, cl_uint *numAvailableDevices)
void GetTypenameInString(const std::type_info &intype, std::ostringstream &ret)
bool GetValidTypename(const std::type_info &intype, const std::vector< std::string > &validtypes, std::string &retTypeName)
int OpenCLGetLocalBlockSize(unsigned int ImageDim)
std::string Get64BitPragma()
cl_platform_id OpenCLSelectPlatform(const char *name)
cl_device_id OpenCLGetMaxFlopsDev(cl_context cxGPUContext)
std::string GetTypename(const std::type_info &intype)
int GetPixelDimension(const std::type_info &intype)
void OpenCLPrintDeviceInfo(cl_device_id device, bool verbose=false)
void OpenCLCheckError(cl_int error, const char *filename="", int lineno=0, const char *location="")