mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 17:49:47 +08:00
Change the num of parallel jobs when building
This commit is contained in:
@@ -25,7 +25,7 @@ function usage()
|
||||
# Determine how many parallel jobs to use for make based on the number of cores
|
||||
unamestr="$(uname)"
|
||||
if [[ "$unamestr" == "Linux" ]]; then
|
||||
PARALLEL=$(nproc --all)
|
||||
PARALLEL=$(nproc)
|
||||
elif [[ "$unamestr" == "Darwin" ]]; then
|
||||
PARALLEL=$(sysctl -n hw.ncpu)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user