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
e9b624fe
"src/array/vscode:/vscode.git/clone" did not exist on "ae8dbe6d3ca38dbac1089b51bbfb0e328a19a4be"
Unverified
Commit
e9b624fe
authored
Aug 11, 2022
by
Minjie Wang
Committed by
GitHub
Aug 11, 2022
Browse files
Merge branch 'master' into dist_part
parents
8086d1ed
a88e7f7e
Changes
167
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
14 deletions
+67
-14
tests/scripts/cugraph_unit_test.sh
tests/scripts/cugraph_unit_test.sh
+21
-0
tests/scripts/task_distributed_test.sh
tests/scripts/task_distributed_test.sh
+41
-0
tests/scripts/task_example_test.bat
tests/scripts/task_example_test.bat
+1
-1
tests/scripts/task_example_test.sh
tests/scripts/task_example_test.sh
+1
-1
tests/scripts/task_unit_test.sh
tests/scripts/task_unit_test.sh
+1
-10
third_party/cub
third_party/cub
+1
-1
third_party/thrust
third_party/thrust
+1
-1
No files found.
tests/scripts/cugraph_unit_test.sh
0 → 100644
View file @
e9b624fe
#!/bin/bash
.
/opt/conda/etc/profile.d/conda.sh
function
fail
{
echo
FAIL:
$@
exit
-1
}
export
DGLBACKEND
=
$1
export
DGLTESTDEV
=
gpu
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
CUDA_VISIBLE_DEVICES
=
0
python3
-m
pip
install
pytest psutil pyyaml pydantic pandas rdflib ogb
||
fail
"pip install"
python3
-m
pytest
-v
--junitxml
=
pytest_cugraph.xml
--durations
=
20 tests/cugraph
||
fail
"cugraph"
tests/scripts/task_distributed_test.sh
0 → 100644
View file @
e9b624fe
#!/bin/bash
.
/opt/conda/etc/profile.d/conda.sh
function
fail
{
echo
FAIL:
$@
exit
-1
}
function
usage
{
echo
"Usage:
$0
backend device"
}
if
[
$#
-ne
2
]
;
then
usage
fail
"Error: must specify backend and device"
fi
[
$1
==
"pytorch"
]
||
fail
"Distrbuted tests run on pytorch backend only."
[
$2
==
"cpu"
]
||
fail
"Distrbuted tests run on cpu only."
export
DGLBACKEND
=
$1
export
DGLTESTDEV
=
$2
export
DGL_LIBRARY_PATH
=
${
PWD
}
/build
export
PYTHONPATH
=
tests:
${
PWD
}
/python:
$PYTHONPATH
export
DGL_DOWNLOAD_DIR
=
${
PWD
}
unset
TORCH_ALLOW_TF32_CUBLAS_OVERRIDE
export
CUDA_VISIBLE_DEVICES
=
-1
conda activate
${
DGLBACKEND
}
-ci
python3
-m
pip
install
pytest psutil pyyaml pydantic pandas rdflib ogb filelock
||
fail
"pip install"
export
PYTHONUNBUFFERED
=
1
export
OMP_NUM_THREADS
=
1
export
DMLC_LOG_DEBUG
=
1
python3
-m
pytest
-v
--capture
=
tee-sys
--junitxml
=
pytest_distributed.xml
--durations
=
100 tests/distributed/
*
.py
||
fail
"distributed"
PYTHONPATH
=
tools:
$PYTHONPATH
python3
-m
pytest
-v
--capture
=
tee-sys
--junitxml
=
pytest_tools.xml
--durations
=
100 tests/tools/
*
.py
||
fail
"tools"
tests/scripts/task_example_test.bat
View file @
e9b624fe
...
@@ -24,7 +24,7 @@ SET DGL_DOWNLOAD_DIR=!CD!
...
@@ -24,7 +24,7 @@ SET DGL_DOWNLOAD_DIR=!CD!
PUSHD
!GCN_EXAMPLE_DIR!
PUSHD
!GCN_EXAMPLE_DIR!
python
pagerank
.py
||
GOTO
:FAIL
python
pagerank
.py
||
GOTO
:FAIL
python
gcn
\
gc
n.py
--dataset
cora
--gpu
!DEV!
||
GOTO
:FAIL
python
gcn
\
trai
n.py
--dataset
cora
||
GOTO
:FAIL
POPD
POPD
ENDLOCAL
ENDLOCAL
EXIT
/B
EXIT
/B
...
...
tests/scripts/task_example_test.sh
View file @
e9b624fe
...
@@ -39,7 +39,7 @@ export DGL_DOWNLOAD_DIR=${PWD}
...
@@ -39,7 +39,7 @@ export DGL_DOWNLOAD_DIR=${PWD}
pushd
$GCN_EXAMPLE_DIR
>
/dev/null
pushd
$GCN_EXAMPLE_DIR
>
/dev/null
python3 pagerank.py
||
fail
"run pagerank.py on
$1
"
python3 pagerank.py
||
fail
"run pagerank.py on
$1
"
python3 gcn/
gc
n.py
--dataset
cora
--gpu
$dev
||
fail
"run gcn/
gc
n.py on
$1
"
python3 gcn/
trai
n.py
--dataset
cora
||
fail
"run gcn/
trai
n.py on
$1
"
python3 lda/lda_model.py
||
fail
"run lda/lda_model.py on
$1
"
python3 lda/lda_model.py
||
fail
"run lda/lda_model.py on
$1
"
popd
>
/dev/null
popd
>
/dev/null
tests/scripts/task_unit_test.sh
View file @
e9b624fe
...
@@ -22,6 +22,7 @@ export DGL_LIBRARY_PATH=${PWD}/build
...
@@ -22,6 +22,7 @@ export DGL_LIBRARY_PATH=${PWD}/build
export
PYTHONPATH
=
tests:
${
PWD
}
/python:
$PYTHONPATH
export
PYTHONPATH
=
tests:
${
PWD
}
/python:
$PYTHONPATH
export
DGL_DOWNLOAD_DIR
=
${
PWD
}
export
DGL_DOWNLOAD_DIR
=
${
PWD
}
export
TF_FORCE_GPU_ALLOW_GROWTH
=
true
export
TF_FORCE_GPU_ALLOW_GROWTH
=
true
unset
TORCH_ALLOW_TF32_CUBLAS_OVERRIDE
if
[
$2
==
"gpu"
]
if
[
$2
==
"gpu"
]
then
then
...
@@ -35,13 +36,3 @@ conda activate ${DGLBACKEND}-ci
...
@@ -35,13 +36,3 @@ 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
||
fail
"pip install"
python3
-m
pytest
-v
--junitxml
=
pytest_compute.xml
--durations
=
100 tests/compute
||
fail
"compute"
python3
-m
pytest
-v
--junitxml
=
pytest_compute.xml
--durations
=
100 tests/compute
||
fail
"compute"
python3
-m
pytest
-v
--junitxml
=
pytest_backend.xml
--durations
=
100 tests/
$DGLBACKEND
||
fail
"backend-specific"
python3
-m
pytest
-v
--junitxml
=
pytest_backend.xml
--durations
=
100 tests/
$DGLBACKEND
||
fail
"backend-specific"
export
PYTHONUNBUFFERED
=
1
export
OMP_NUM_THREADS
=
1
export
DMLC_LOG_DEBUG
=
1
if
[
$2
!=
"gpu"
&&
$DGLBACKEND
==
"pytorch"
]
;
then
python3
-m
pip
install
filelock
python3
-m
pytest
-v
--capture
=
tee-sys
--junitxml
=
pytest_distributed.xml
--durations
=
100 tests/distributed/
*
.py
||
fail
"distributed"
PYTHONPATH
=
tools:
$PYTHONPATH
python3
-m
pytest
-v
--capture
=
tee-sys
--junitxml
=
pytest_tools.xml
--durations
=
100 tests/tools/
*
.py
||
fail
"tools"
fi
cub
@
cdaa9558
Subproject commit
a3ee304a1f8e22f278df10600df2e4b333012592
Subproject commit
cdaa9558a85e45d849016e5fe7b6e4ee79113f95
thrust
@
6a3078c6
Compare
0ef5c509
...
6a3078c6
Subproject commit
0ef5c509856e12cc408f0f00ed586b4c5b1a155c
Subproject commit
6a3078c64cab0e2f276340fa5dcafa0d758ed890
Prev
1
…
5
6
7
8
9
Next
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