Skip to content

Commit

Permalink
another try to get the correct cores
Browse files Browse the repository at this point in the history
  • Loading branch information
jcurtis2 committed Dec 14, 2023
1 parent b7a0cb5 commit 2869f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test_parallel_2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ b=1
if [ "$(uname)" == "Darwin" ]; then
b=$(getconf _NPROCESSORS_ONLN)
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
b=$(grep -c 'cpu[0-9]' /proc/stat) #(getconf _NPROCESSORS_ONLN)
b=$(lscpu --parse=Core,Socket | grep --invert-match '^#' | sort -u | wc -l) #(getconf _NPROCESSORS_ONLN)
fi
lscpu
echo $(uname)
Expand Down

0 comments on commit 2869f58

Please sign in to comment.