Skip to content

Commit 4306cbc

Browse files
authored
Update eessi_environment_variables
1 parent 23c93bc commit 4306cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/eessi_environment_variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if [ -d $EESSI_PREFIX ]; then
6767
EESSI_ACCEL_SOFTWARE_SUBDIR=${EESSI_ACCEL_SOFTWARE_SUBDIR_OVERRIDE:-$EESSI_SOFTWARE_SUBDIR}
6868
# path to where accel/* subdirectory is located
6969
EESSI_ACCEL_SOFTWARE_PATH=${EESSI_PREFIX}/software/${EESSI_OS_TYPE}/${EESSI_ACCEL_SOFTWARE_SUBDIR}
70-
if [ -d $EESSI_ACCEL_SOFTWARE_PATH/${EESSI_ACCEL_SUBDIR} ]; then
70+
if [ ! -d $EESSI_ACCEL_SOFTWARE_PATH/${EESSI_ACCEL_SUBDIR} ]; then
7171
# We should try to use the fallback compute capability
7272
show_msg "archdetect found no supported accelerator ${EESSI_ACCEL_SUBDIR}, falling back to ${EESSI_ACCEL_SUBDIR::-1}0"
7373
EESSI_ACCEL_SUBDIR="${EESSI_ACCEL_SUBDIR::-1}0"

0 commit comments

Comments
 (0)