mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
60 lines
990 B
Bash
Executable file
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
|