diff --git a/asv.conf.json b/asv.conf.json index 76ee1d22ef43..42a5c9781729 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -17,7 +17,7 @@ // uninstalling the project. See asv.conf.json documentation. // "install_command": [ - "in-dir={env_dir} python -c \"print('skip')\"" + "in-dir={env_dir} python -m pip install numpy" ], "build_command": [ "python -c \"print('skip')\"" diff --git a/tests/regression/publish.sh b/tests/regression/publish.sh index 9041dbacebb4..2c2acc512287 100644 --- a/tests/regression/publish.sh +++ b/tests/regression/publish.sh @@ -1,4 +1,5 @@ -docker run --name dgl-reg --rm --hostname=reg-machine --runtime=nvidia \ - -v /home/ubuntu/asv_workspace:/root/regression \ - -it dgllib/dgl-ci-gpu:conda \ - /bin/bash /root/regression/dgl/tests/regression/run.sh \ No newline at end of file +docker run --name dgl-reg --rm --hostname=reg-machine --runtime=nvidia -dit dgllib/dgl-ci-gpu:conda /bin/bash +docker cp /home/ubuntu/asv_data dgl-reg:/root/asv_data/ +docker exec dgl-reg bash /root/asv_data/run.sh +docker cp dgl-reg:/root/regression/dgl/asv/. /home/ubuntu/asv_data/ +docker stop dgl-reg \ No newline at end of file diff --git a/tests/regression/run.sh b/tests/regression/run.sh index d303a8aae434..b3cd90765a7a 100644 --- a/tests/regression/run.sh +++ b/tests/regression/run.sh @@ -1,15 +1,17 @@ . /opt/conda/etc/profile.d/conda.sh cd ~ +mkdir regression cd regression +# git config core.filemode false +git clone --recursive https://github.com/dmlc/dgl.git cd dgl -# git clone --recursive https://github.com/dmlc/dgl.git -git pull -git submodule init -git submodule update --recursive +mkdir asv +cp -r ~/asv_data/* asv/ conda activate base -pip install asv +pip install --upgrade pip +pip install asv numpy source /root/regression/dgl/tests/scripts/build_dgl.sh gpu