clGetDeviceIDs returned -32

Hi everybody,

I downloaded and installed from [url=“http://developer.nvidia.com/object/cuda_3_1_downloads.html”]http://developer.nvidia.com/object/cuda_3_1_downloads.html[/url] the driver and the cuda toolkit. Both for ubuntu 9.10. with a Quadro FX 580.

I ran make to create the examples and they work without problems.

Then I tried following example code - [url=“http://svn.clifford.at/tools/trunk/examples/cldemo.c”]http://svn.clifford.at/tools/trunk/examples/cldemo.c[/url] - which resulted in an error message: " OpenCL Error: ‘clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU, 100, devices, &devices_n)’ returned -32! "

How can I solve this problem? What steps do you recommend to debug?

You can’t pass NULL for the platform ID; you have to query available platforms with clGetPlatformIDs and use one of the returned platforms.

You can’t pass NULL for the platform ID; you have to query available platforms with clGetPlatformIDs and use one of the returned platforms.

Thank you, it seems to me the example is not up to date anymore.

Thank you, it seems to me the example is not up to date anymore.

Thank you, it seems to me the example is not up to date anymore.

Thank you, it seems to me the example is not up to date anymore.