File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 88
88
if : matrix.suite == 'cpu'
89
89
run : |
90
90
cd $GITHUB_WORKSPACE
91
- PYTHON=python${{ matrix.python-version }} IMPORTER=1 ./setup_venv.sh
91
+ PYTHON=python${{ matrix.python-version }} BENCHMARK=1 IMPORTER=1 ./setup_venv.sh
92
92
source shark.venv/bin/activate
93
93
pytest --benchmark --ci --ci_sha=${SHORT_SHA} --local_tank_cache="/data/anush" tank/test_models.py -k cpu
94
94
gsutil cp ./bench_results.csv gs://shark-public/builder/bench_results/${DATE}/bench_results_cpu_${SHORT_SHA}.csv
98
98
if : matrix.suite == 'cuda'
99
99
run : |
100
100
cd $GITHUB_WORKSPACE
101
- PYTHON=python${{ matrix.python-version }} IMPORTER=1 ./setup_venv.sh
101
+ PYTHON=python${{ matrix.python-version }} BENCHMARK=1 IMPORTER=1 ./setup_venv.sh
102
102
source shark.venv/bin/activate
103
103
pytest --benchmark --ci --ci_sha=${SHORT_SHA} --local_tank_cache="/data/anush" tank/test_models.py -k cuda
104
104
gsutil cp ./bench_results.csv gs://shark-public/builder/bench_results/${DATE}/bench_results_cuda_${SHORT_SHA}.csv
@@ -108,6 +108,6 @@ jobs:
108
108
if : matrix.suite == 'vulkan'
109
109
run : |
110
110
cd $GITHUB_WORKSPACE
111
- PYTHON=python${{ matrix.python-version }} IMPORTER=1 ./setup_venv.sh
111
+ PYTHON=python${{ matrix.python-version }} BENCHMARK=1 IMPORTER=1 ./setup_venv.sh
112
112
source shark.venv/bin/activate
113
113
pytest --ci --ci_sha=${SHORT_SHA} --local_tank_cache="/data/anush" tank/test_models.py -k vulkan
Original file line number Diff line number Diff line change 7
7
# VENV_DIR=myshark.venv #create a venv called myshark.venv
8
8
# USE_IREE=1 #use stock IREE instead of Nod.ai's SHARK build
9
9
# IMPORTER=1 #Install importer deps
10
+ # BENCHMARK=1 #Install benchmark deps
10
11
# NO_BACKEND=1 #Don't install iree or shark backend
11
12
# if you run the script from a conda env it will install in your conda env
12
13
112
113
113
114
$PYTHON -m pip install -e . -f https://llvm.github.io/torch-mlir/package-index/ -f https://github.com/${RUNTIME} /releases
114
115
115
- if [[ $( uname -s) = ' Linux' && ! -z " ${IMPORTER } " ]]; then
116
+ if [[ $( uname -s) = ' Linux' && ! -z " ${BENCHMARK } " ]]; then
116
117
$PYTHON -m pip uninstall -y torch torchvision
117
118
$PYTHON -m pip install --pre torch torchvision --extra-index-url https://download.pytorch.org/whl/nightly/cu116
118
119
if [ $? -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments