Skip to content

Commit 271821a

Browse files
authored
Merge pull request #33 from casparvl/fix_forgotten_accelerator_override
Fix forgotten EESSI_ACCELERATOR_TARGET
2 parents 99dea34 + 2d0cc68 commit 271821a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

bot/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ export EESSI_DEV_PROJECT=${EESSI_DEV_PROJECT}
298298
TMP_IN_CONTAINER=/tmp
299299
echo "Executing command to create tarball:"
300300
echo "$software_layer_dir/eessi_container.sh ${COMMON_ARGS[@]} ${TARBALL_STEP_ARGS[@]}"
301-
echo " -- $software_layer_dir/create_tarball.sh ${TMP_IN_CONTAINER} ${EESSI_VERSION} ${EESSI_SOFTWARE_SUBDIR_OVERRIDE} \"${EESSI_ACCELERATOR_TARGET}\" /eessi_bot_job/${TGZ} 2>&1 | tee -a ${tar_outerr}"
301+
echo " -- $software_layer_dir/create_tarball.sh ${TMP_IN_CONTAINER} ${EESSI_VERSION} ${EESSI_SOFTWARE_SUBDIR_OVERRIDE} \"${EESSI_ACCELERATOR_TARGET_OVERRIDE}\" /eessi_bot_job/${TGZ} 2>&1 | tee -a ${tar_outerr}"
302302
$software_layer_dir/eessi_container.sh "${COMMON_ARGS[@]}" "${TARBALL_STEP_ARGS[@]}" \
303-
-- $software_layer_dir/create_tarball.sh ${TMP_IN_CONTAINER} ${EESSI_VERSION} ${EESSI_SOFTWARE_SUBDIR_OVERRIDE} "${EESSI_ACCELERATOR_TARGET}" /eessi_bot_job/${TGZ} 2>&1 | tee -a ${tar_outerr}
303+
-- $software_layer_dir/create_tarball.sh ${TMP_IN_CONTAINER} ${EESSI_VERSION} ${EESSI_SOFTWARE_SUBDIR_OVERRIDE} "${EESSI_ACCELERATOR_TARGET_OVERRIDE}" /eessi_bot_job/${TGZ} 2>&1 | tee -a ${tar_outerr}
304304

305305
exit 0

create_tarball.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ if [ -d ${eessi_version}/init ]; then
6262
find ${eessi_version}/init -type f \! -name '.wh.*' >> ${files_list}
6363
fi
6464

65-
# consider both CPU-only and accelerator subdirectories
66-
for subdir in ${cpu_arch_subdir} ${cpu_arch_subdir}/${accel_subdir}; do
65+
# consider both CPU-only and accelerator subdirectories (if an accelerator was configured)
66+
sw_subdirs=${cpu_arch_subdir}
67+
if [ -n ${accel_subdir} ]; then
68+
sw_subdirs="${sw_subdirs} ${cpu_arch_subdir}/${accel_subdir}"
69+
fi
70+
for subdir in ${sw_subdirs}; do
6771

6872
if [ -d ${eessi_version}/software/${os}/${subdir}/modules ]; then
6973
# module files

0 commit comments

Comments
 (0)