Skip to content

Commit

Permalink
Ensure we are making an EESSI install when using the CUDA hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ocaisa committed Sep 24, 2024
1 parent 087b7d7 commit b8555d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,12 @@ def post_sanitycheck_cuda(self, *args, **kwargs):
and replace them with a symlink to a corresponding installation under host_injections.
"""
# Make sure we only do this for CUDA and only if we are doing a CVMFS installation
if self.name == 'CUDA' and self.installdir.startswith('/cvmfs/software.eessi.io/versions'):
is_eessi_install = (
self.installdir.startswith("/cvmfs/software.eessi.io/versions")
and not build_option("sanity_check_only")
and not build_option("module_only")
)
if self.name == 'CUDA' and is_eessi_install:
print_msg("Replacing files in CUDA installation that we can not ship with symlinks to host_injections...")

# read CUDA EULA, construct allowlist based on section 2.6 that specifies list of files that can be shipped
Expand Down

0 comments on commit b8555d1

Please sign in to comment.