We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c965703 commit 126b4feCopy full SHA for 126b4fe
Utilities/Tools/jobutils2.sh
@@ -398,7 +398,7 @@ getNumberOfPhysicalCPUCores() {
398
#
399
# Notice the human readable output of lscpu depends on the version and wether or not you
400
# are inside a container. The following should be more stable.
401
- CORESPERSOCKET=$(lscpu -p=cpu,socket | grep ,0 | sort | uniq | wc -l)
+ CORESPERSOCKET=$(lscpu -p=cpu,socket | grep "^[0-9]\+,0" | sort | uniq | wc -l)
402
SOCKETS=$(lscpu -p=socket | grep -e "^[0-9]" | sort | uniq | wc -l)
403
fi
404
N=$((${CORESPERSOCKET}*${SOCKETS}))
0 commit comments