Skip to content

Commit fc2de71

Browse files
committed
make it clear _cuda_version_tuple is a private var
1 parent 2a832f5 commit fc2de71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ansible/roles/cuda/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ cuda_repo: "https://developer.download.nvidia.com/compute/cuda/repos/{{ cuda_dis
33
cuda_packages:
44
- cuda
55
- nvidia-gds
6-
# cuda_version_tuple: # discovered from installed package e.g. ('12', '1', '0')
7-
cuda_version_short: "{{ cuda_version_tuple[0] }}.{{ cuda_version_tuple[1] }}"
6+
# _cuda_version_tuple: # discovered from installed package e.g. ('12', '1', '0')
7+
cuda_version_short: "{{ _cuda_version_tuple[0] }}.{{ cuda_version_tuple[1] }}"
88
cuda_samples_release_url: "https://github.com/NVIDIA/cuda-samples/archive/refs/tags/v{{ cuda_version_short }}.tar.gz"
99
cuda_samples_path: "/home/{{ ansible_user }}/cuda_samples"
1010
cuda_samples_programs:

ansible/roles/cuda/tasks/samples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
- name: Set fact for discovered cuda version
77
set_fact:
8-
cuda_version_tuple: "{{ (_cuda_samples_version.content | b64decode | from_json).cuda.version | split('.') }}" # e.g. '12.1.0'
8+
_cuda_version_tuple: "{{ (_cuda_samples_version.content | b64decode | from_json).cuda.version | split('.') }}" # e.g. '12.1.0'
99

1010
- name: Ensure cuda_samples_path exists
1111
file:

0 commit comments

Comments
 (0)