# Post-installation problems CUDA 10.0

**URL:** <https://forums.developer.nvidia.com/t/post-installation-problems-cuda-10-0/66268>\
**Category:** CUDA Setup and Installation\
**Created:** [October 16, 2018, 4:01pm UTC](https://forums.developer.nvidia.com/t/post-installation-problems-cuda-10-0/66268 "2018-10-16T16:01:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shikhar.mittal4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@shikhar.mittal4](https://forums.developer.nvidia.com/u/shikhar.mittal4)\
**Post date:** [October 16, 2018, 4:01pm UTC](https://forums.developer.nvidia.com/t/post-installation-problems-cuda-10-0/66268/1 "2018-10-16T16:01:57Z")

</div>

I followed everything as instructed on [https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#abstract](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

1. $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.

2. $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/](https://www.linuxmint.com/)”  
SUPPORT\_URL=“[https://forums.ubuntu.com/](https://forums.ubuntu.com/)”  
BUG\_REPORT\_URL=“[Linux Mint Troubleshooting Guide — Linux Mint Troubleshooting Guide documentation](http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/)”  
PRIVACY\_POLICY\_URL=“[https://www.linuxmint.com/](https://www.linuxmint.com/)”  
VERSION\_CODENAME=tara  
UBUNTU\_CODENAME=bionic  
cat: /etc/upstream-release: Is a directory

3. $uname -r  
4.15.0-20-generic

4. $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:-

5. $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.

1. $/lib/udev/rules.d/40-vm-hotadd.rules  
bash: /lib/udev/rules.d/40-vm-hotadd.rules: Permission denied

2. $printenv PATH  
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

3. $cuda-install-samples-10.0.sh   
bash: syntax error near unexpected token `newline’

4. $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)

5. $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.

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [October 17, 2018, 12:25am UTC](https://forums.developer.nvidia.com/t/post-installation-problems-cuda-10-0/66268/2 "2018-10-17T00:25:37Z")

</div>

You followed everything as instructed? Because Linux Mint isn’t a supported OS.

Which part of the instructions were you following that indicated that Linux Mint is OK?

---

<div class="post-metadata">

**Author:** ![shikhar.mittal4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@shikhar.mittal4](https://forums.developer.nvidia.com/u/shikhar.mittal4)\
**Post date:** [October 17, 2018, 3:25am UTC](https://forums.developer.nvidia.com/t/post-installation-problems-cuda-10-0/66268/3 "2018-10-17T03:25:11Z")

</div>

According to table 1, Ubuntu 18.04 GCC 7.3.0 Kernel Module 4.15.0 is supported, right? Also, I saw a video ([CUDA 9.0 installation in Ubuntu 16.4 + / Linux Mint - Full instruction with verification - YouTube](https://www.youtube.com/watch?v=FK1y7XQuhp0&t=319s)) yesterday which explains the steps in more detail and found the solution to my problem.

$./deviceQuery

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: “GeForce 840M”  
CUDA Driver Version / Runtime Version 10.0 / 10.0  
CUDA Capability Major/Minor version number: 5.0  
Total amount of global memory: 4046 MBytes (4242604032 bytes)  
( 3) Multiprocessors, (128) CUDA Cores/MP: 384 CUDA Cores  
GPU Max Clock rate: 1124 MHz (1.12 GHz)  
Memory Clock rate: 900 Mhz  
Memory Bus Width: 64-bit  
L2 Cache Size: 1048576 bytes  
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)  
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers  
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers  
Total amount of constant memory: 65536 bytes  
Total amount of shared memory per block: 49152 bytes  
Total number of registers available per block: 65536  
Warp size: 32  
Maximum number of threads per multiprocessor: 2048  
Maximum number of threads per block: 1024  
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)  
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)  
Maximum memory pitch: 2147483647 bytes  
Texture alignment: 512 bytes  
Concurrent copy and kernel execution: Yes with 1 copy engine(s)  
Run time limit on kernels: Yes  
Integrated GPU sharing Host Memory: No  
Support host page-locked memory mapping: Yes  
Alignment requirement for Surfaces: Yes  
Device has ECC support: Disabled  
Device supports Unified Addressing (UVA): Yes  
Device supports Compute Preemption: No  
Supports Cooperative Kernel Launch: No  
Supports MultiDevice Co-op Kernel Launch: No  
Device PCI Domain ID / Bus ID / location ID: 0 / 3 / 0  
Compute Mode:  
\< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) \>

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.0, CUDA Runtime Version = 10.0, NumDevs = 1  
Result = PASS
