Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
ea0899d0
Commit
ea0899d0
authored
Oct 11, 2023
by
lisj
Browse files
修复测试脚本的环境设置
parent
614007d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests/scripts/task_unit_test.sh
tests/scripts/task_unit_test.sh
+2
-1
No files found.
tests/scripts/task_unit_test.sh
View file @
ea0899d0
...
...
@@ -22,6 +22,7 @@ export DGL_LIBRARY_PATH=${PWD}/build
export
PYTHONPATH
=
tests:
${
PWD
}
/python:
$PYTHONPATH
export
DGL_DOWNLOAD_DIR
=
${
PWD
}
export
TF_FORCE_GPU_ALLOW_GROWTH
=
true
export
LD_LIBRARY_PATH
=
/usr/local/lib/python3.8/site-packages/torch/lib/:
$LD_LIBRARY_PATH
unset
TORCH_ALLOW_TF32_CUBLAS_OVERRIDE
if
[
$2
==
"gpu"
]
...
...
@@ -33,7 +34,7 @@ fi
conda activate
${
DGLBACKEND
}
-ci
python3
-m
pip
install
pytest psutil pyyaml pydantic pandas rdflib ogb
||
fail
"pip install"
python3
-m
pip
install
pytest psutil pyyaml pydantic pandas rdflib ogb
urllib3
==
1.26.15
||
fail
"pip install"
if
[
$DGLBACKEND
==
"mxnet"
]
then
python3
-m
pytest
-v
--junitxml
=
pytest_compute.xml
--durations
=
100
--ignore
=
tests/compute/test_ffi.py tests/compute
||
fail
"compute"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment