Consistent device ordering from clGetDeviceIDs?

Consistent device ordering from clGetDeviceIDs?

Hi,

 

When I run a basic OpenCL hello world on my Intel Core i7-3630QM CPU containing Intel HD Graphics 4000, I query and select the Intel platform, then query the devices and select the first device, and proceed.  I just noticed this for the first time, but on some runs I get the CPU, and on others I get the GPU.  Is that to be expected?  What are the rules regarding this behavior, as I don't see it discussed in the OpenCL specification.  I guess that devices may not be consistently ordered between application executions (as I'm witnessing), but I'm concerned that within an application if the order could change unexpectantly.  Would someone please clarify this for me?

 

Thanks!

5 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

We are aware of the issue and it will be fixed in a future release and will notify here.

Raghu
 

Hi,

With the release of the Intel OpenCL SDK R3, can you confirm if this issue has been resolved or not?  My quick test doesn't show the issue anymore, but I'd like a more concrete answer.

Thanks!

I can confirm this is still an issue with CL_DRIVER_VERSION 10.18.10.3345.

Generally, it is better to rely on the Device Type (clCreateContextFromType), not the device order.

Accedere per lasciare un commento.