Commit 1be23e80 authored by Domenico Giordano's avatar Domenico Giordano
Browse files

Merge branch 'giordano-qa-patch-59292' into 'qa'

fix condition on N_TOTAL_CORES check

See merge request !614
parents d8219744 142ea4c5
......@@ -333,10 +333,10 @@ 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))" != "0" ]; then
if [ $(($N_TOTAL_CORES%$NTHREADS)) -eq 0 ]; then
NCOPIES=$((N_TOTAL_CORES/NTHREADS));
else
echo -e "[$bmkDriver] ERROR! This run uses $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"
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
fi
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment