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
70
70
if [ ! -d $EESSI_ACCEL_SOFTWARE_PATH/${EESSI_ACCEL_SUBDIR} ]; then
71
71
# We should try to use the fallback compute capability
72
72
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}
74
76
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
78
80
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 })"
80
82
fi
81
83
fi
82
84
else
You can’t perform that action at this time.
0 commit comments