Skip to content

Commit cae1ccf

Browse files
committed
rename nvidia driver version var
1 parent 59e95de commit cae1ccf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ansible/roles/cuda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Requires OFED to be installed to provide required kernel-* packages.
99
## Role Variables
1010

1111
- `cuda_repo_url`: Optional. URL of `.repo` file. Default is upstream for appropriate OS/architecture.
12-
- `cuda_driver_stream`: Optional. Version of `nvidia-driver` stream to enable. This controls whether the open or proprietary drivers are installed and the major version. Changing this once the drivers are installed does not change the version.
12+
- `cuda_nvidia_driver_stream`: Optional. Version of `nvidia-driver` stream to enable. This controls whether the open or proprietary drivers are installed and the major version. Changing this once the drivers are installed does not change the version.
1313
- `cuda_packages`: Optional. Default: `['cuda', 'nvidia-gds']`.
1414
- `cuda_package_version`: Optional. Default `latest` which will install the latest packages if not installed but won't upgrade already-installed packages. Use `'none'` to skip installing CUDA.
1515
- `cuda_persistenced_state`: Optional. State of systemd `nvidia-persistenced` service. Values as [ansible.builtin.systemd:state](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/systemd_module.html#parameter-state). Default `started`.

ansible/roles/cuda/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cuda_repo_url: "https://developer.download.nvidia.com/compute/cuda/repos/rhel{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/cuda-rhel{{ ansible_distribution_major_version }}.repo"
2-
cuda_driver_stream: '560-open' # 565-open has problems with cuda packages
2+
cuda_nvidia_driver_stream: '560-open' # 565-open has problems with cuda packages
33
cuda_package_version: '12.6.3-1'
44
cuda_packages:
55
- "cuda{{ ('-' + cuda_package_version) if cuda_package_version != 'latest' else '' }}"

ansible/roles/cuda/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
register: _cuda_driver_module_enabled
2525

2626
- name: Enable nvidia driver module
27-
ansible.builtin.command: "dnf module enable -y nvidia-driver:{{ cuda_driver_stream }}"
27+
ansible.builtin.command: "dnf module enable -y nvidia-driver:{{ cuda_nvidia_driver_stream }}"
2828
register: _cuda_driver_module_enable
2929
when: "'No matching Modules to list' in _cuda_driver_module_enabled.stderr"
3030
changed_when: "'Nothing to do' not in _cuda_driver_module_enable.stdout"

0 commit comments

Comments
 (0)