error 10304 cudaGetDeviceCount return unspecified driver error 10304

With cuda driver 4.0.50 and 4.0.31 cudaGetDeviceCount fails in our application with error 10304 “unspecified driver error”. The nvidia examples are running fine.
With driver 4.0.21, 4.0.19 and 4.017 everything works fine. I am using a Quadro 4000 card on OS X 10.7.2. Does someone know what could be causing this error 10304?


I am able to reproduce the error with the examples from the GPU Computing SDK if I build the examples for 64-bit.


[deviceQuery] starting...

./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 10304

-> unspecified driver error

[deviceQuery] test results...


Maybe someone from NVIDIA can comment?


Sounds like you may be hitting a known issue mentioned here

Thanks, that was indeed the problem.

What I don’t know is how my system was set to use a 32 bit kernel because I have not explicitly set that myself and I had used driver 4.0.50 successfully before.

Thanks again,