mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
Use jobs 50 (#6255)
This commit is contained in:
@@ -7,6 +7,15 @@ ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
||||
|
||||
echo "PYTHON is $PYTHON"
|
||||
|
||||
# If we are in Travis, most of the compilation result will be cached.
|
||||
# This means we are I/O bounded. By default, Bazel set the number of concurrent
|
||||
# jobs to the the number cores on the machine, which are not efficient for
|
||||
# network bounded cache downloading workload. Therefore we increase the number
|
||||
# of jobs to 50
|
||||
if [[ "$TRAVIS" == "true" ]]; then
|
||||
echo "build --jobs=50" >> $HOME/.bazelrc
|
||||
fi
|
||||
|
||||
if [[ "$PYTHON" == "2.7" ]]; then
|
||||
|
||||
pushd "$ROOT_DIR/../../python"
|
||||
@@ -32,8 +41,8 @@ elif [[ "$LINT" == "1" ]]; then
|
||||
pushd "$ROOT_DIR/../../python"
|
||||
python setup.py install --user
|
||||
popd
|
||||
|
||||
else
|
||||
echo "Unrecognized Python version."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user