I installed Cuda 7.0. I did verify that I have a GPU, Ubuntu 14.04, etc for the installation process.
However, when I try to run the examples (make first), i get CUDA related errors:
[i]sudo ./vectorAdd
[Vector addition of 50000 elements]
Failed to allocate device vector A (error code no CUDA-capable device is detected)!
sudo ./simplePrintf
CUDA error at …/…/common/inc/helper_cuda.h:1105 code=38(cudaErrorNoDevice) “cudaGetDeviceCount(&device_count)”[/i]
I though the paths were not set properly, but i think they are:
$PATH
bash: /usr/local/cuda-7.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: No such file or directory
$LD_LIBRARY_PATH
bash: /usr/local/cuda-7.0/lib64:: No such file or directory
Any ideas on how to solve this potential installation issue?
How exactly did you install CUDA 7?
Was this done on a clean load of Ubuntu 14.04, or is there some history here? (e.g. prior cuda versions loaded, etc.)
which GPU specifically?
what is the result of running:
sudo ./vectorAdd
[Vector addition of 50000 elements]
Copy input data from the host memory to the CUDA device
CUDA kernel launch with 196 blocks of 256 threads
Copy output data from the CUDA device to the host memory
Test PASSED
Done
I just restarted Ubuntu (was that required though?).