|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
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>
76 OpenCLCheckError(cl_int error,
const char * filename =
"",
int lineno = 0,
const char * location =
"");
88 GetValidTypename(
const std::type_info & intype,
const std::vector<std::string> & validtypes, std::string & retTypeName);
cl_platform_id OpenCLSelectPlatform(const char *name)
bool GetValidTypename(const std::type_info &intype, const std::vector< std::string > &validtypes, std::string &retTypeName)
cl_device_id OpenCLGetMaxFlopsDev(cl_context cxGPUContext)
void OpenCLCheckError(cl_int error, const char *filename="", int lineno=0, const char *location="")
cl_device_id * OpenCLGetAvailableDevices(cl_platform_id platform, cl_device_type devType, cl_uint *numAvailableDevices)
void OpenCLPrintDeviceInfo(cl_device_id device, bool verbose=false)
std::string Get64BitPragma()
std::string GetTypename(const std::type_info &intype)
int GetPixelDimension(const std::type_info &intype)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
void GetTypenameInString(const std::type_info &intype, std::ostringstream &ret)
int OpenCLGetLocalBlockSize(unsigned int ImageDim)