I’ve just installed the cuda 10 tool kit from the cuda_10.0.130_410.48_linux.run file from the nvidia website on my ubuntu 18.04.1.LTS dual booted acer aspire laptop with a gtx960m. When I run the test example in the directory: ~/NVIDIA_CUDA-10.0_Samples/5_Simulations/nbody I get the following:
Run “nbody -benchmark [-numbodies=]” to measure performance.
-fullscreen (run n-body simulation in fullscreen mode)
-fp64 (use double precision floating point values for simulation)
-hostmem (stores simulation data in host memory)
-benchmark (run benchmark to measure performance)
-numbodies= (number of bodies (>= 1) to run in simulation)
-device= (where d=0,1,2… for the CUDA device to use)
-numdevices= (where i=(number of CUDA devices > 0) to use for simulation)
-compare (compares simulation results running once on the default GPU and once on the CPU)
-cpu (run n-body simulation on the CPU)
-tipsy=<file.bin> (load a tipsy model file for simulation)
NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.
Error: only 0 Devices available, 1 requested. Exiting.
(terminal output end)
It seems like from this that cuda is not finding my GPU. I would really appreciate any help because I want to get started with pytorch soon! Thanks in advance.
PS Maybe relevant info:
To get to the point I have I’ve followed the instructions in the nvida getting started guide. Black listing the nouvea driver got me to the point where the GPU driver could be installed. After this, I noticed the drivers were greyed out in the software and updates application but now I’ve installed the 390 driver (the lastest on the nvidia website) to try and solve this issue and the software and updates application now shows all clickable with the 390 as the one being active. The 410 driver is not seen there but has been installed correctly with the cuda run file. One more strange thing is that nvcc --version only works if I sudo su before it.