evk8888

clGetDeviceIDs

Discussion created by evk8888 on Oct 14, 2011
Latest reply on Oct 18, 2011 by evk8888
Regarding the "device_type" parameter in this call.

hi guys,

 

Usually the device_type is set by the user stating one of the following bit fields. CL_DEVICE_TYPE_CPU CL_DEVICE_TYPE_GPU CL_DEVICE_TYPE_ACCELERATOR

CL_DEVICE_TYPE_DEFAULT and CL_DEVICE_TYPE_ALL 

This has to be mentioned by the user as a command line arg or in the code itself (for GPU or CPU so on).  is thr anyway tht the OpenCL runtime by itself identifies the available systems? like stating there is a CPU and a GPU and we can create a context and queues based on wat we want.

 

Thanks

evk

Outcomes