I did some search and the latest driver version for your gpu is 410.
Suppose you want to use CUDA 10, then there's no need to install nvidia driver at first since the 410 driver is already included in CUDA 10.
Read the cuda10 Installation Guide for linux creafully.
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=runfilelocal
Download the runfile version cuda, and be very careful to every step of its command line prompts.
These steps works for me, with a Intel graphics and Nvidia graphics together in my laptop.(and I use Inter one to show). I can't make sure it also works for you since the gpu is not same.
Please follow the cuda installation guide for linux at first or something not clear here.
- remember the location of cuda10 run file.
- make sure disable Nouveau,
enter or touch this file: /etc/modprobe.d/blacklist-nouveau.conf
input two lines:
blacklist nouveau
options nouveau modeset=0
save and then command line:
sudo update-initramfs -u
systemctl set-default runlevel3.target
to make your computer only command line version after reboot,then reboot, use command line
lsmod | grep nouveau
,to check whether you disable nouveau, if there's no output, it's right.
sudo sh cuda_10.0.130_410.48_linux.run
(1)EULA Acceptance-------y
(2)CUDA Driver installation------y
(3)openGL-------n
(4)x-server-------n
(5)CUDA Toolkit installation location --------------Enter
(6)CUDA Samples installation and location ---------------Enter
If everything is fine, command line:
systemctl set-default runlevel5.target
Then reboot.
set environment path in ~/.bashrc
PATH=/usr/local/cuda-10.0/bin
LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64
then source ~/.bashrc
make sure all things are right.
cat /proc/driver/nvidia/version
nvcc -V
nvidia-smi
test cuda
cd your-own-sample-path to/1_Utilities/deviceQuery
sudo make
./deviceQuery