File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,15 @@ if [ -d $EESSI_PREFIX ]; then
7070 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"
73- EESSI_ACCEL_SUBDIR="${EESSI_ACCEL_SUBDIR::-1}0"
73+ EESSI_ACCELERATOR_TARGET="${EESSI_ACCEL_SUBDIR::-1}0"
74+ else
75+ EESSI_ACCELERATOR_TARGET="${EESSI_ACCEL_SUBDIR}
7476 fi
75- if [ -d $EESSI_ACCEL_SOFTWARE_PATH/${EESSI_ACCEL_SUBDIR } ]; then
76- show_msg "archdetect found supported accelerator for CPU target ${EESSI_ACCEL_SOFTWARE_SUBDIR}: ${EESSI_ACCEL_SUBDIR }"
77- export EESSI_ACCELERATOR_TARGET=${EESSI_ACCEL_SUBDIR}
77+ if [ -d $EESSI_ACCEL_SOFTWARE_PATH/${EESSI_ACCELERATOR_TARGET } ]; then
78+ show_msg "archdetect found supported accelerator for CPU target ${EESSI_ACCEL_SOFTWARE_SUBDIR}: ${EESSI_ACCELERATOR_TARGET }"
79+ export EESSI_ACCELERATOR_TARGET
7880 else
79- show_msg "No matching path found in ${EESSI_ACCEL_SOFTWARE_SUBDIR} for accelerator detected by archdetect (${EESSI_ACCEL_SUBDIR })"
81+ show_msg "No matching path found in ${EESSI_ACCEL_SOFTWARE_SUBDIR} for accelerator detected by archdetect (${EESSI_ACCELERATOR_TARGET })"
8082 fi
8183 fi
8284 else
You can’t perform that action at this time.
0 commit comments