I followed everything as instructed on https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#abstract
but I am unable to complete post-installation actions. Note I have followed package manager installation. The following are the results for my PC
-
$gcc --version
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -
$uname -m && cat /etc/*release
x86_64
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19
DISTRIB_CODENAME=tara
DISTRIB_DESCRIPTION=“Linux Mint 19 Tara”
NAME=“Linux Mint”
VERSION=“19 (Tara)”
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME=“Linux Mint 19”
VERSION_ID=“19”
HOME_URL=“https://www.linuxmint.com/”
SUPPORT_URL=“https://forums.ubuntu.com/”
BUG_REPORT_URL=“Linux Mint Troubleshooting Guide — Linux Mint Troubleshooting Guide documentation”
PRIVACY_POLICY_URL=“https://www.linuxmint.com/”
VERSION_CODENAME=tara
UBUNTU_CODENAME=bionic
cat: /etc/upstream-release: Is a directory -
$uname -r
4.15.0-20-generic -
$lspci | grep -i nvidia
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2) ___________________________________________________
After following exactly as in guide, I get these:- -
$systemctl status nvidia-persistenced
● nvidia-persistenced.service - NVIDIA Persistence Daemon
Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service; static; vendor preset: enabled)
Active: active (running) since Tue 2018-10-16 20:38:16 IST; 42min ago
Process: 945 ExecStart=/usr/bin/nvidia-persistenced --user root --no-persistence-mode --verbose (code=exited, status=0/SUCCESS)
Main PID: 946 (nvidia-persiste)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/nvidia-persistenced.service
└─946 /usr/bin/nvidia-persistenced --user root --no-persistence-mode --verbose
Oct 16 20:38:16 Shikhar-Mittal systemd[1]: Starting NVIDIA Persistence Daemon…
Oct 16 20:38:16 Shikhar-Mittal nvidia-persistenced[946]: Verbose syslog connection opened
Oct 16 20:38:16 Shikhar-Mittal nvidia-persistenced[946]: Started (946)
Oct 16 20:38:16 Shikhar-Mittal nvidia-persistenced[946]: device 0000:03:00.0 - registered
Oct 16 20:38:16 Shikhar-Mittal nvidia-persistenced[946]: Local RPC service initialized
Oct 16 20:38:16 Shikhar-Mittal systemd[1]: Started NVIDIA Persistence Daemon.
-
$/lib/udev/rules.d/40-vm-hotadd.rules
bash: /lib/udev/rules.d/40-vm-hotadd.rules: Permission denied -
$printenv PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games$echo $LD_LIBRARY_PATH
/home/shikhar/gsl/lib -
$cuda-install-samples-10.0.sh
bash: syntax error near unexpected token `newline’ -
$cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 410.48 Thu Sep 6 06:36:33 CDT 2018
GCC version: gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04) -
$nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
I can’t find the folder of CUDA, i.e, there is no such directory as ~/NVIDIA_CUDA-10.0_Samples
so I can’t run deviceQuery. Sorry for the long question, but I am new to Linux. Its been 5 days and I am unable to intall CUDA properly. Help please.