Skip to content

Commit 05f1d92

Browse files
authored
Update README.md
1 parent 3f51573 commit 05f1d92

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
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/

0 commit comments

Comments
 (0)