Hello,
I have Sony Vaio VPCCW21FX laptop with Geforce 310m graphics card installed, which specs says it has 16 CUDA cores… but when I run the clGetDeviceInfo OpenCL function with the param_name CL_DEVICE_MAX_COMPUTE_UNITS, it shows that it only has 2 cores!!
That’s my code:
cl_int * err=(cl_int *)clGetDeviceInfo(devices[0],CL_DEVICE_MAX_COMPUTE_UNITS,0,0
,&nDeviceDescriptorSize);
cl_uint * maxCores = (cl_uint *)malloc(nDeviceDescriptorSize);
err=(cl_int *)clGetDeviceInfo(devices[0],CL_DEVICE_MAX_COMPUTE_UNITS,nDe
viceDescriptorSize,maxCores,0);
if(err==CL_SUCCESS)
cout<<"The maximum compute cores = "<<maxCores[0]<<endl;
where devices[0] is the ID of my GPU device…
I’m not sure why this might happen!