Skip to content

Conversation

@claudia-lola
Copy link
Contributor

Add tasks to eessi/configure.yml and compute-init.yml to run the EESSI link_nvidia_host_libraries.sh script on gpu nodes with nvidia drivers installed. The tasks will be run when either site.yml is run or a rebuild via slurm is completed.

@claudia-lola claudia-lola requested a review from a team as a code owner October 28, 2025 15:31
@claudia-lola claudia-lola self-assigned this Oct 28, 2025
name: basic_users
when: enable_basic_users

- name: EESSI
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should replace this whole EESSI block with running the configure task directly. But it is not obvious how to do this TBF ...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to describe it in https://wiki.stackhpc.com/doc/slurm-development-ZXjBRByl6K#h-only-inventory-vars

so you could change the entire eeesi thing to do this.

cmd: "cvmfs_config setup"

# configure gpus
- name: Check for NVIDIA driver
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether there is always a /dev/nvidia0? Could you check with @jovial please for e.g MIG and vGPU configs? Else we'd have to do something like https://github.com/stackhpc/ansible-role-openhpc/blob/be6196540ca8007a0e45f2c3b2596ed0ff77fc13/library/gpu_info.py#L42 but TBH this approach here is much simpler!

cmd: "cvmfs_config setup"

# configure gpus
- name: Check for NVIDIA driver
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly, this is checking for the device, which is only present if the driver is loaded. So I suggest:

Suggested change
- name: Check for NVIDIA driver
- name: Check for NVIDIA GPU

path: /dev/nvidia0
register: nvidia_driver

- name: Set fact if NVIDIA driver is present
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Set fact if NVIDIA driver is present
- name: Set fact if NVIDIA GPU is present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants