Skip to content

Commit

Permalink
alternative method for getting available cores
Browse files Browse the repository at this point in the history
  • Loading branch information
jcurtis2 committed Dec 13, 2023
1 parent 3ed7cc3 commit f52adc0
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=$(getconf _NPROCESSORS_ONLN)
b=$(grep -c 'cpu[0-9]' /proc/stat) #(getconf _NPROCESSORS_ONLN)
fi
echo $(uname)
echo $a $b
Expand Down

0 comments on commit f52adc0

Please sign in to comment.