File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 11# add_cuda_path
22
3- Script to add CUDA PATH directories
3+ Script to add CUDA PATH variables directories at the system level.
44
5- Tested on Ubuntu 18.04
5+ The profile script allows CUDA environment variables to be enabled for all users.
66
7- # Usage
8- Add shell script to /etc/profile.d/ as root
7+ Tested on Ubuntu 18.04, but should work on other Linux instances.
8+
9+ ## Installation
10+ It's recommended to create a symbolic link from the desired CUDA directory to /usr/local/cuda.
11+
12+ Example:
13+ > ln -sf /usr/local/cuda-10.2 /usr/local/cuda
14+
15+ The script looks for a CUDA installation under /usr/local/cuda
16+
17+ For multiple CUDA installations, simply update the symbolic link to point towards the desired CUDA version.
18+
19+ Copy the shell script to /etc/profile.d/ as root
20+
21+ > sudo cp cuda.sh /etc/profile.d/
You can’t perform that action at this time.
0 commit comments