Skip to content
Snippets Groups Projects

Fix number of cores variable

Closed Matthias Jochen Schnepf requested to merge mschnepf/hep-workloads:qa into qa
+ 3
3
@@ -332,9 +332,9 @@ fi
# if a max number of cores is configured to be loaded then compute how many copies are needed
# to fill exactly that number of cores.
if [ "$N_TOTAL_CORES" != "" ]; then #i.e. if defined via USER_N_TOTAL_CORES or hardcoded default value
if [ $(($N_TOTAL_CORES%$NTHREADS)) -eq 0 ]; then
NCOPIES=$((N_TOTAL_CORES/NTHREADS));
if [ "$USER_N_TOTAL_CORES" != "" ]; then #i.e. if defined via USER_N_TOTAL_CORES or hardcoded default value
if [ $(($USER_N_TOTAL_CORES%$NTHREADS)) -eq 0 ]; then
NCOPIES=$((USER_N_TOTAL_CORES/NTHREADS));
else
echo -e "[$bmkDriver] ERROR! This run uses threads=$NTHREADS per copy and can not fill ncores=$N_TOTAL_CORES) cores with an integer number of copies. Please change accordingly the number of threads (-t | --threads) if -ncopies is used\n"
exit 1
Loading