nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148
I have two nvcc installed to i set the path to the latest version i.e. nvcc 9.2.
The nvcc -v option showed me that the PATH is pointing to the previous version, i figured it out that i had changed the PATH for user and not for the root;while i was compiling as a root (a pure mistake)
This may not be related to this thread but I would like to know to safely and thoroughly delete the previous version without effecting the current version.
I figured the other version must be < 8.0 since it doesn’t recognize sm_80, and that you are picking up the old version.
I wouldn’t worry about removing an old CUDA version, simply set up your environment properly. I have three or four versions of CUDA installed on my machine and haven’t noticed any issues with disk usage.
FWIW, friends don’t let friends build as root. Conventional wisdom is that root should only be used to accomplish tasks that absolutely require root access. Everything amounts to playing with fire.
The kernel i use; uses mlock(…) which require root privileges for locking files > 64k, Instead of giving password time-to-time, i login as root and use my up+enter to build and run the kernel ;)
Anyways, i am not willing to remove the old version now.