Skip to content

Commit 0b83f50

Browse files
authored
Merge branch 'main' into cuda_12.9.1
2 parents 6ab1370 + 8178cfe commit 0b83f50

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

eb_hooks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ def pre_fetch_hook_check_installation_path(self, *args, **kwargs):
698698
strict_eessi_installation = (
699699
bool(re.search(EESSI_INSTALLATION_REGEX, self.installdir)) or
700700
self.installdir.startswith(HOST_INJECTIONS_LOCATION))
701-
if strict_eessi_installation:
701+
if strict_eessi_installation and not os.getenv("EESSI_OVERRIDE_STRICT_INSTALLPATH_CHECK"):
702702
dependency_names = self.cfg.dependency_names()
703703
if self.cfg.name in accelerator_deps or any(dep in dependency_names for dep in accelerator_deps):
704704
# Make sure the path is an accelerator location
@@ -1093,7 +1093,7 @@ def pre_configure_hook_graphviz(self, *args, **kwargs):
10931093
# Replace --with-ltdl-lib and --with-zlibdir options defined in the EC to point to compat layer
10941094
lib_dir = os.path.join(usr_dir, 'lib64')
10951095
new_items = set()
1096-
# Add to the new_items all the old items except the `--with-ltdl-lib` and `--with-ltdl-lib` for
1096+
# Add to the new_items all the old items except the `--with-ltdl-lib` and `--with-ltdl-lib` for
10971097
# which we fix the lib dir to lib64 instead of lib
10981098
for item in old_items:
10991099
if item.startswith('--with-ltdl-lib'):
@@ -1487,7 +1487,7 @@ def pre_test_hook_ignore_failing_tests_OpenBabel_a64fx(self, *args, **kwargs):
14871487
Pre-test hook for OpenBabel: skip timeout tests for OpenBabel 3.1.1 on aarch64/a64fx
14881488
see https://github.com/EESSI/software-layer/pull/1332#issuecomment-3877255228
14891489
the `testroundtrip.py` test reads and writes tens of thousands of small files.
1490-
The test works fine when manually ran with EESSI-extend either directly or inside an eessi_container, but
1490+
The test works fine when manually ran with EESSI-extend either directly or inside an eessi_container, but
14911491
consistently fails with the bot
14921492
"""
14931493
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')

scripts/gpu_support/nvidia/install_cuda_and_libraries.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,9 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
149149
MODULEPATH=${EASYBUILD_INSTALLPATH}/.modules/all
150150
echo "set MODULEPATH=${MODULEPATH}"
151151

152-
# We don't want hooks used in this install, we need vanilla installations
153-
touch "${tmpdir}"/none.py
154-
export EASYBUILD_HOOKS="${tmpdir}/none.py"
155-
152+
# We need to skip the hook that checks if CUDA software installed in an accelerator-specific prefix
153+
export EESSI_OVERRIDE_STRICT_INSTALLPATH_CHECK=1
154+
156155
# show EasyBuild configuration
157156
echo "Show EasyBuild configuration"
158157
eb --show-config
@@ -238,8 +237,6 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
238237
# is run, it is not reinstalled.
239238
# - ${accept_eula_opt}: We only set the --accept-eula-for=CUDA option if CUDA will be installed and if
240239
# this script was called with the argument --accept-cuda-eula.
241-
# - hooks: We don't want hooks used in this install, we need vanilla
242-
# installations of CUDA and/or other libraries
243240
# - easystack: Path to easystack file that defines which packages shall be
244241
# installed
245242
accept_eula_opt=
@@ -256,7 +253,6 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
256253
touch "$tmpdir"/none.py
257254
eb_args="--prefix=$tmpdir"
258255
eb_args="$eb_args --installpath-modules=${EASYBUILD_INSTALLPATH}/.modules"
259-
eb_args="$eb_args --hooks="$tmpdir"/none.py"
260256
eb_args="$eb_args --easystack ${EASYSTACK_FILE}"
261257
if [[ ! -z ${accept_eula_opt} ]]; then
262258
eb_args="$eb_args --accept-eula-for=$accept_eula_opt"

0 commit comments

Comments
 (0)