File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -171,16 +171,16 @@ else
171171fi
172172echo " bot/build.sh: EESSI_ACCELERATOR_TARGET_OVERRIDE='${EESSI_ACCELERATOR_TARGET_OVERRIDE} '"
173173
174- # check if CPU architecture of the build host matches our expectation
174+ # Log the full lscpu and os-release info:
175+ lscpu > _bot_job${SLURM_JOB_ID} .lscpu
176+ cat /etc/os-release > _bot_job${SLURM_JOB_ID} .os
177+
178+ # Also: fetch CPU flags into an array, so that we can implement a hard check against a reference
175179lscpu_flags_line=$( lscpu | grep " Flags:" )
176180# strip leading "Flags:" and spaces, and put result in a bash array
177181if [[ $lscpu_flags =~ Flags:\ (.* ) ]]; then lscpu_flags=(${BASH_REMATCH[1]} ); fi
178182# for now, just print
179183echo " bot/build.sh: CPU flags=${lscpu_flags[@]} "
180- # Also, log the full lscpu and os-release info:
181- lscpu > _bot_job${SLURM_JOB_ID} .lscpu
182- cat /etc/os-release > _bot_job${SLURM_JOB_ID} .os
183-
184184# TODO: an actual comparison with a reference bash array, e.g. through
185185# diff_result=$(diff <(printf "%s\n" "${lscpu_flags[@]}" | sort) <(printf "%s\n" "${lscpu_flags_ref[@]}" | sort))
186186# if [ ! -z "$diff_result" ]; then
You can’t perform that action at this time.
0 commit comments