You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- enforce accelerator subdirectory usage for CVMFS installs (only if an accelerator install is requested)
133
-
if (eessi_accelerator_target ~= nil) and (cuda_compute_capability ~= nil) and (os.getenv("EESSI_ACCELERATOR_INSTALL") ~= nil) then
137
+
if (eessi_accelerator_target ~= nil) and (cuda_compute_capability ~= nil or amd_compute_capability ~= nil) and (os.getenv("EESSI_ACCELERATOR_INSTALL") ~= nil) then
Copy file name to clipboardExpand all lines: init/eessi_archdetect.sh
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -179,13 +179,14 @@ accelpath() {
179
179
# If EESSI_ACCELERATOR_TARGET_OVERRIDE is set, use it
180
180
log "DEBUG""accelpath: Override variable set as '$EESSI_ACCELERATOR_TARGET_OVERRIDE' "
181
181
if [ !-z$EESSI_ACCELERATOR_TARGET_OVERRIDE ];then
182
-
if [[ "$EESSI_ACCELERATOR_TARGET_OVERRIDE"=~ ^accel/nvidia/cc[0-9]+$ ]];then
183
-
echo${EESSI_ACCELERATOR_TARGET_OVERRIDE}
182
+
# Regex that allows both NVIDIA and AMD overrides
183
+
if [[ "$EESSI_ACCELERATOR_TARGET_OVERRIDE"=~ ^accel/(nvidia/cc[0-9]+|amd/gfx[0-9a-f]+)$ ]];then
184
+
echo"$EESSI_ACCELERATOR_TARGET_OVERRIDE"
184
185
return 0
185
186
else
186
-
log "ERROR""Value of \$EESSI_ACCELERATOR_TARGET_OVERRIDE should match 'accel/nvidia/cc[0-9]+', but it does not: '$EESSI_ACCELERATOR_TARGET_OVERRIDE'"
187
+
log "ERROR""Value of \$EESSI_ACCELERATOR_TARGET_OVERRIDE should match 'accel/nvidia/cc[0-9]+' or 'accel/amd/gfx[0-9a-f]+', but it does not: '$EESSI_ACCELERATOR_TARGET_OVERRIDE'"
# determine version of EasyBuild module to load based on EasyBuild version included in name of easystack file
99
99
eb_version=$(echo ${EASYSTACK_FILE}| sed 's/.*eb-\([0-9.]*\).*.yml/\1/g')
@@ -104,7 +104,7 @@ for EASYSTACK_FILE in ${TOPDIR}/easystacks/eessi-*CUDA*.yml; do
104
104
if [[ $?-eq 0 ]];then
105
105
echo_green ">> Found an EasyBuild/${eb_version} module"
106
106
else
107
-
echo_yellow ">> No EasyBuild/${eb_version} module found: skipping step to install easystack file ${easystack_file} (see output in ${module_avail_out})"
107
+
echo_yellow ">> No EasyBuild/${eb_version} module found: skipping step to install easystack file ${EASYSTACK_FILE} (see output in ${module_avail_out})"
108
108
continue
109
109
fi
110
110
# Safer to unload EESSI-extend before loading an EasyBuild version, in case unload behavior ever becomes dependent on EasyBuild version
0 commit comments