Skip to content

Commit

Permalink
build: only install cuda-nvprof on x86_64
Browse files Browse the repository at this point in the history
Signed-off-by: Esteve Fernandez <[email protected]>
  • Loading branch information
esteve committed Nov 3, 2023
1 parent bc6a64e commit f5275c5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ansible/roles/cuda/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,20 @@
- cuda-minimal-build-{{ cuda__dash_case_cuda_version.stdout }}
- cuda-libraries-dev-{{ cuda__dash_case_cuda_version.stdout }}
- cuda-nvml-dev-{{ cuda__dash_case_cuda_version.stdout }}
- cuda-nvprof-{{ cuda__dash_case_cuda_version.stdout }}
- libnpp-dev-{{ cuda__dash_case_cuda_version.stdout }}
- libcusparse-dev-{{ cuda__dash_case_cuda_version.stdout }}
- libcublas-dev-{{ cuda__dash_case_cuda_version.stdout }}
- libnccl-dev
update_cache: true

- name: Install extra CUDA libraries for x86_64
become: true
ansible.builtin.apt:
name:
- cuda-nvprof-{{ cuda__dash_case_cuda_version.stdout }}
update_cache: true
when: cuda_architecture.stdout == "x86_64"

- name: Install cuda-drivers
become: true
ansible.builtin.apt:
Expand Down

0 comments on commit f5275c5

Please sign in to comment.