File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,14 @@ export EESSI_SOFTWARE_SUBDIR_OVERRIDE
175
175
echo " bot/test.sh: EESSI_SOFTWARE_SUBDIR_OVERRIDE='${EESSI_SOFTWARE_SUBDIR_OVERRIDE} '"
176
176
177
177
# determine accelerator target (if any) from .architecture in ${JOB_CFG_FILE}
178
- export EESSI_ACCELERATOR_TARGET=$( cfg_get_value " architecture" " accelerator" )
179
- echo " bot/test.sh: EESSI_ACCELERATOR_TARGET='${EESSI_ACCELERATOR_TARGET} '"
178
+ ACCEL_OVERRIDE=$( cfg_get_value " architecture" " accelerator" )
179
+ if [[ -n " $ACCEL_OVERRIDE " ]]; then
180
+ # bot job config does not include accel subdirectory
181
+ export EESSI_ACCELERATOR_TARGET_OVERRIDE=" accel/$ACCEL_OVERRIDE "
182
+ else
183
+ export EESSI_ACCELERATOR_TARGET_OVERRIDE=" "
184
+ fi
185
+ echo " bot/test.sh: EESSI_ACCELERATOR_TARGET_OVERRIDE='${EESSI_ACCELERATOR_TARGET_OVERRIDE} '"
180
186
181
187
# get EESSI_OS_TYPE from .architecture.os_type in ${JOB_CFG_FILE} (default: linux)
182
188
EESSI_OS_TYPE=$( cfg_get_value " architecture" " os_type" )
Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ export RFM_PREFIX=$PWD/reframe_runs
155
155
156
156
# Get the correct partition name
157
157
REFRAME_PARTITION_NAME=${EESSI_SOFTWARE_SUBDIR// \/ / _}
158
- if [ ! -z " $EESSI_ACCELERATOR_TARGET " ]; then
159
- REFRAME_PARTITION_NAME=${REFRAME_PARTITION_NAME} _${EESSI_ACCELERATOR_TARGET // \/ / _}
158
+ if [ ! -z " $EESSI_ACCELERATOR_TARGET_OVERRIDE " ]; then
159
+ REFRAME_PARTITION_NAME=${REFRAME_PARTITION_NAME} _${EESSI_ACCELERATOR_TARGET_OVERRIDE // \/ / _}
160
160
fi
161
161
echo " Constructed partition name based on EESSI_SOFTWARE_SUBDIR and EESSI_ACCELERATOR_TARGET: ${REFRAME_PARTITION_NAME} "
162
162
You can’t perform that action at this time.
0 commit comments