mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-04 19:44:23 +08:00
[Misc] Fix the directory of DGL_DOWNLOAD_DIR (#6048)
This commit is contained in:
@@ -58,7 +58,7 @@ export DGLBACKEND=pytorch
|
||||
export DGL_LIBRARY_PATH=${DGL_HOME}/build
|
||||
export PYTHONPATH=${DGL_HOME}/python:${DGL_HOME}/tests:$PYTHONPATH
|
||||
export DGLTESTDEV=${device}
|
||||
export DGL_DOWNLOAD_DIR=${DGL_HOME}/build
|
||||
export DGL_DOWNLOAD_DIR=${DGL_HOME}/_download
|
||||
|
||||
if [[ -z $@ ]]; then
|
||||
echo "ERROR: Missing test targets."
|
||||
|
||||
@@ -11,7 +11,7 @@ export DGLBACKEND=$1
|
||||
export DGLTESTDEV=gpu
|
||||
export DGL_LIBRARY_PATH=${PWD}/build
|
||||
export PYTHONPATH=tests:${PWD}/python:$PYTHONPATH
|
||||
export DGL_DOWNLOAD_DIR=${PWD}
|
||||
export DGL_DOWNLOAD_DIR=${PWD}/_download
|
||||
export TF_FORCE_GPU_ALLOW_GROWTH=true
|
||||
|
||||
export CUDA_VISIBLE_DEVICES=0
|
||||
|
||||
@@ -23,7 +23,7 @@ export DGLBACKEND=$1
|
||||
export DGLTESTDEV=$2
|
||||
export DGL_LIBRARY_PATH=${PWD}/build
|
||||
export PYTHONPATH=tests:${PWD}/python:$PYTHONPATH
|
||||
export DGL_DOWNLOAD_DIR=${PWD}
|
||||
export DGL_DOWNLOAD_DIR=${PWD}/_download
|
||||
unset TORCH_ALLOW_TF32_CUBLAS_OVERRIDE
|
||||
|
||||
export CUDA_VISIBLE_DEVICES=-1
|
||||
|
||||
@@ -20,7 +20,7 @@ CALL workon %BUILD_TAG%
|
||||
SET DGLBACKEND=pytorch
|
||||
SET DGL_LIBRARY_PATH=!CD!\build
|
||||
SET PYTHONPATH=!CD!\python;!PYTHONPATH!
|
||||
SET DGL_DOWNLOAD_DIR=!CD!
|
||||
SET DGL_DOWNLOAD_DIR=!CD!\_download
|
||||
|
||||
python -m pytest -v --junitxml=pytest_backend.xml --durations=100 tests\examples || GOTO :FAIL
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ fi
|
||||
export DGLBACKEND=pytorch
|
||||
export DGL_LIBRARY_PATH=${PWD}/build
|
||||
export PYTHONPATH=${PWD}/python:$PYTHONPATH
|
||||
export DGL_DOWNLOAD_DIR=${PWD}
|
||||
export DGL_DOWNLOAD_DIR=${PWD}/_download
|
||||
|
||||
# test
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ function fail {
|
||||
export DGLBACKEND=pytorch
|
||||
export DGL_LIBRARY_PATH=${PWD}/build
|
||||
export PYTHONPATH=tests:${PWD}/python:$PYTHONPATH
|
||||
export DGL_DOWNLOAD_DIR=${PWD}
|
||||
export DGL_DOWNLOAD_DIR=${PWD}/_download
|
||||
|
||||
conda activate pytorch-ci
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ export MPLBACKEND=Agg
|
||||
export DGLBACKEND=pytorch
|
||||
export DGL_LIBRARY_PATH=${PWD}/build
|
||||
export PYTHONPATH=${PWD}/python:$PYTHONPATH
|
||||
export DGL_DOWNLOAD_DIR=${PWD}
|
||||
export DGL_DOWNLOAD_DIR=${PWD}/_download
|
||||
|
||||
pushd ${TUTORIAL_ROOT} > /dev/null
|
||||
# Install requirements
|
||||
|
||||
@@ -12,7 +12,7 @@ CALL workon %BUILD_TAG%
|
||||
SET PYTHONPATH=tests;!CD!\python;!PYTHONPATH!
|
||||
SET DGLBACKEND=!BACKEND!
|
||||
SET DGL_LIBRARY_PATH=!CD!\build
|
||||
SET DGL_DOWNLOAD_DIR=!CD!
|
||||
SET DGL_DOWNLOAD_DIR=!CD!\_download
|
||||
|
||||
python -m pip install pytest psutil pandas pyyaml pydantic rdflib torchmetrics || EXIT /B 1
|
||||
python -m pytest -v --junitxml=pytest_backend.xml --durations=100 tests\python\!DGLBACKEND! || EXIT /B 1
|
||||
|
||||
@@ -20,7 +20,7 @@ export DGLBACKEND=$1
|
||||
export DGLTESTDEV=$2
|
||||
export DGL_LIBRARY_PATH=${PWD}/build
|
||||
export PYTHONPATH=tests:${PWD}/python:$PYTHONPATH
|
||||
export DGL_DOWNLOAD_DIR=${PWD}
|
||||
export DGL_DOWNLOAD_DIR=${PWD}/_download
|
||||
export TF_FORCE_GPU_ALLOW_GROWTH=true
|
||||
unset TORCH_ALLOW_TF32_CUBLAS_OVERRIDE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user