run.sh 590 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -e

DEVICE=$1
ROOT=/asv/dgl

. /opt/conda/etc/profile.d/conda.sh

conda activate base
pip install --upgrade pip
12
13
14
# Newer asv version like 0.5.1 has different result format,
# so we fix the version here. Or `generate_excel.py` has to be changed.
pip install asv==0.4.2
15
16
17
pip uninstall -y dgl

export DGL_BENCH_DEVICE=$DEVICE
18
echo "DGL_BENCH_DEVICE=$DGL_BENCH_DEVICE"
19
20
21
pushd $ROOT/benchmarks
cat asv.conf.json
asv machine --yes
22
23
24
# If --launch-method is specified as 'spawn', multigpu tests will crash with
# "No module named 'benchmarks' is found".
asv run -e -v
25
26
asv publish
popd