ray/release/microbenchmark/run.sh
Simon Mo 5df9f07ff3
[CI] Use Docker image for microbenchmarks (#12189)
* [CI] Use Docker image for microbenchmarks

* Update cluster.yaml
2020-11-19 17:54:40 -08:00

60 lines
990 B
Bash
Executable file

#!/usr/bin/env bash
set -xe
ray_version=""
commit=""
ray_branch=""
usage() {
echo "Start one microbenchmark trial."
}
for i in "$@"
do
case "$i" in
--ray-version=*)
ray_version="${i#*=}"
;;
--commit=*)
commit="${i#*=}"
;;
--ray-branch=*)
ray_branch="${i#*=}"
;;
--workload=*)
workload="${i#*=}"
;;
--help)
usage
exit
;;
*)
echo "unknown arg, $2"
exit 1
;;
esac
done
if [ -z "$ray_version" ] || [ -z "$commit" ] || [ -z "$ray_branch" ]
then
echo "Provide --ray-version, --commit, and --ray-branch"
exit 1
fi
echo "version: $ray_version"
echo "commit: $commit"
echo "branch: $ray_branch"
echo "workload: $workload"
wheel="https://s3-us-west-2.amazonaws.com/ray-wheels/$ray_branch/$commit/ray-$ray_version-cp37-cp37m-manylinux2014_x86_64.whl"
pip uninstall -y -q ray
pip install --upgrade pip
pip install -U "$wheel"
unset RAY_ADDRESS
ray stop --force
OMP_NUM_THREADS=64 ray microbenchmark