cuda-6.5 samples not working with nvidia GeForce 9800 GT on Ubuntu 14.04

Greetings,

I have Ubuntu 14.04 x86_64 with nvidia Driver Version 340.65. I installed (compiled) cuda-6.5 package, but it’s not working, giving errors with code 30; for example:

matrixMul
[Matrix Multiply Using CUDA] - Starting…
cudaGetDevice returned error code 30, line(396)
cudaGetDeviceProperties returned error code 30, line(409)
MatrixA(320,320), MatrixB(640,320)
cudaMalloc d_A returned error code 30, line(164)

eigenvalues
Starting eigenvalues
CUDA error at …/…/common/inc/helper_cuda.h:1032 code=30(cudaErrorUnknown) “cudaGetDeviceCount(&device_count)”

What could be wrong with my CUDA-6.5 installation ? Or is it problem of nvidia GeForce 9800 GT ?

The nvidia-smi command gives:

±-----------------------------------------------------+
| NVIDIA-SMI 340.65 Driver Version: 340.65 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce 9800 GT Off | 0000:01:00.0 N/A | N/A |
| 0% 51C P0 N/A / N/A | 288MiB / 511MiB | N/A Default |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
±----------------------------------------------------------------------------+

Yours, Miro

The GeForce 9800 GT is a very old GPU with compute capability 1.1. It is not clear to me what the support status is with the 340.65 driver. For a similar case see this question on Stackoverflow:

http://stackoverflow.com/questions/27622387/installing-cuda-on-ubuntu-14-04

You may want to consider filing a bug using the bug reporting form linked from the registered developer website to get an authoritative answer.

It may still be a problem with the install. I would suggest trying the CUDA 6.5 runfile installer package for ubuntu 14.04. I’m guessing you used the package manager method. Depending on how you did it, you may not have gotten all the necessary pieces.

Follow instructions in the linux getting started guide:

http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html#runfile