Skip to content

Commit

Permalink
build: keep /usr/local/cuda as path
Browse files Browse the repository at this point in the history
Signed-off-by: Esteve Fernandez <[email protected]>
  • Loading branch information
esteve committed Nov 2, 2023
1 parent 495e85b commit a35c308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/cuda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ Perform the post installation actions:

```bash
# Taken from: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions
echo 'export PATH=/usr/local/cuda-12.3/bin${PATH:+:${PATH}}' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-12.3/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}' >> ~/.bashrc
echo 'export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}' >> ~/.bashrc
```
4 changes: 2 additions & 2 deletions ansible/roles/cuda/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
- name: Add PATH to .bashrc
ansible.builtin.lineinfile:
dest: ~/.bashrc
line: export PATH="/usr/local/cuda-12.3/bin:$PATH"
line: export PATH="/usr/local/cuda/bin:$PATH"
state: present
create: true
mode: 0644

- name: Add LD_LIBRARY_PATH to bashrc
ansible.builtin.lineinfile:
dest: ~/.bashrc
line: export LD_LIBRARY_PATH="/usr/local/cuda-12.3/lib64:$LD_LIBRARY_PATH"
line: export LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
state: present
create: true
mode: 0644

0 comments on commit a35c308

Please sign in to comment.