Skip to content

Commit

Permalink
Update cuda.md
Browse files Browse the repository at this point in the history
  • Loading branch information
juntao authored May 20, 2024
1 parent 3baf624 commit 886260e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/node-guide/tasks/cuda.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0
```

After that, use the following command line to set up the environment path. You should probably add this line to your `~/.bashrc` or `~/.zshrc` files so that new terminals and future logins will still be able to find these CUDA library files.
After that, use the following two commands to set up the environment path. You should probably add these two lines to your `~/.bashrc` or `~/.zshrc` files so that new terminals and future logins will still be able to find these CUDA library files.

```
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export PATH=/usr/local/cuda/bin:$PATH
```

## More resources
Expand Down

0 comments on commit 886260e

Please sign in to comment.