I am getting started with CUDA. I have slackware 14.1 64-bit running on a Dell Precision m4400 machine.
I have installed CUDA toolkit 6.0
I have the NVIDIA driver installed :
lspci | grep -i nvidia shows
“01:00.0 VGA compatible controller: NVIDIA Corporation G96GLM [Quadro FX 770M] (rev a1)”
This is the 331.20 driver, I am assuming that CUDA 6 works with this driver version.
I am trying to compile and run the example matrixMul from CUDA-Samples/0_Simple. It compiles correctly, but when I run it using
./matrixMul -device=0 -wA=10 -hA=10 -wB=10 -hB=10, I get an error
“cudaGetDevice returned error code 3, line(396)”
Does anyone have an idea on what is going wrong? Any help is most appreciated.
deviceQuery fails with the following error
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 3
-> initialization error
Result = FAIL"