Query number of processing elements for device

Hello,

Is there any way to get number of processing elements (i.e. streaming processors for CUDA) for given OpenCL device? Looking in OpenCL specs I can’t find how to accomplish this.

I am sorry if this (almost-RTFM) question has been answered somewhere, but I’ve been off this forum for quite a while and can’t find the answer.

Thank you.

Have you tried clGetDeviceInfo() with CL_DEVICE_MAX_COMPUTE_UNITS ?

It returns “2” for 9400M. Is it number of multiprocessors? I cannot check other hardware since I’m out of office…

Should be the number of MP, yes.

Okay, thanks for answers :)