Problem with CUDA in Ubuntu 10.04 and Geforce 8600 GT

I have got the cuda driver, toolkit and sdk installed in Ubuntu 10.04. I’m using nVidia Geforce 8600 GT card. Official website says my card is CUDA supported. But on running the deviceQuery that comes with the cuda sdk, I’m getting the following output.

./deviceQuery Starting...

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

There is no device supporting CUDA

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 134566327, CUDA Runtime Version = 0.0, NumDevs = 0

PASSED

Press <Enter> to Quit...

Please help me on this. Thanks.

Your card is fine.

Are you SURE you’re running the NVIDIA driver, and not the built in Ubuntu driver?
Just run nvidia-settings to check that your GPU is listed and running the driver you installed.

If you use the default driver, display will work fine but you won’t see any CUDA devices… that’s the symptoms you seem to have.

You can also check by using nvidia-smi to list the devices.

Thanks, I had to blacklist nv and nouveau to get the cuda driver working. Now, all the code samples are working fine.

But, after installing the cuda driver, my resolution is very low. In nvidia-settings, I can find only 640x480 as the highest resolution. How do I fix this? Thanks.

I had to change the HorizSync and VertRefresh of my monitor in xorg.conf to

HorizSync 30.0 – 83.0

VertRefresh 56.0 – 76.0