Skip to content

Commit 904534c

Browse files
committed
Use "nproc" instead of "nproc --all" to respect the cgroup limit of Docker container
1 parent ab6db46 commit 904534c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toolchain/scripts/tool_kit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ get_nprocs() {
233233
if [ -n "${NPROCS_OVERWRITE}" ]; then
234234
echo ${NPROCS_OVERWRITE} | sed 's/^0*//'
235235
elif $(command -v nproc > /dev/null 2>&1); then
236-
echo $(nproc --all)
236+
echo $(nproc)
237237
elif $(command -v sysctl > /dev/null 2>&1); then
238238
echo $(sysctl -n hw.ncpu)
239239
else

0 commit comments

Comments
 (0)