Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include accelerator modules in Lmod caches #200

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

bedroge
Copy link
Collaborator

@bedroge bedroge commented Oct 3, 2024

Running it on the Stratum 0 in an open (but aborted) transaction shows the following for zen2 and zen3 (the only CPU targets for which we have accelerator modules at the moment):

Updated the Lmod cache for /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2 using MODULEPATH: /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/accel/nvidia/cc80/modules/all:/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/modules/all.

Updated the Lmod cache for /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen3 using MODULEPATH: /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen3/accel/nvidia/cc80/modules/all:/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen3/modules/all.

And an inspection of the cache file itself also shows that they're now included:

spiderT = {
  ["/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/accel/nvidia/cc80/modules/all"] = {
    CUDA = {

Note that it adds all accelerator targets (i.e. compute capabilities) to the cache. At the moment there's only one (cc80), but having more should not be a problem: paths that are not in the $MODULEPATH will be ignored, hence users will not see any accelerator modules as long as the corresponding path hasn't been added to their $MODULEPATH.

Copy link
Contributor

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel merged commit ca1aa51 into EESSI:main Oct 3, 2024
18 of 20 checks passed
@bedroge bedroge deleted the accel_lmod_cache branch October 3, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants