Returns the list of OpenCL platforms
int ocl::
getOpenCLPlatforms
(PlatformsInfo& platforms)¶Parameters: |
|
---|
Returns the list of devices
int ocl::
getOpenCLDevices
(DevicesInfo& devices, int deviceType=CVCL_DEVICE_TYPE_GPU, const PlatformInfo* platform=NULL )¶Parameters: |
|
---|
Initialize OpenCL computation context
void ocl::
setDevice
(const DeviceInfo* info)¶Parameters: |
|
---|
Alternative way to initialize OpenCL computation context.
void ocl::
initializeContext
(void* pClPlatform, void* pClContext, void* pClDevice)¶Parameters: |
|
---|
This function can be used for context initialization with D3D/OpenGL interoperability.
Returns void
void ocl::
setBinaryPath
(const char* path)¶Parameters: |
|
---|
If you call this function and set a valid path, the OCL module will save the compiled kernel to the address in the first time and reload the binary since that. It can save compilation time at the runtime.