Skip to content

Commit a465c96

Browse files
committed
don't start CUDA persistence daemon in image build
1 parent 584f4b2 commit a465c96

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

ansible/roles/cuda/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ Requires OFED to be installed to provide required kernel-* packages.
1111
- `cuda_distro`: Optional. Default `rhel8`.
1212
- `cuda_repo`: Optional. Default `https://developer.download.nvidia.com/compute/cuda/repos/{{ cuda_distro }}/x86_64/cuda-{{ cuda_distro }}.repo`
1313
- `cuda_packages`: Optional. Default: `['cuda', 'nvidia-gds']`.
14+
- `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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ cuda_samples_programs:
1111
- deviceQuery
1212
- bandwidthTest
1313
# cuda_devices: # discovered from deviceQuery run
14+
cuda_persistenced_state: started

ansible/roles/cuda/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
systemd:
4242
name: nvidia-persistenced
4343
enabled: true
44-
state: started
44+
state: "{{ cuda_persistenced_state }}"
4545

4646
- name: Reboot
4747
ansible.builtin.reboot:

environments/common/inventory/group_vars/builder/defaults.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ grafana_state: stopped # as it tries to listen on the "real" grafana node
1212
block_devices_configurations: [] # as volumes will not be attached to Packer build VMs
1313
mysql_state: stopped # as it tries to connect to real mysql node
1414
opensearch_state: stopped # avoid writing config+certs+db into image
15+
cuda_persistenced_state: stopped # probably don't have GPU in Packer build VMs

0 commit comments

Comments
 (0)