Skip to content

Commit bac662c

Browse files
committed
Merge branch 'master' into 0.3.x
2 parents 6f665d2 + e17add5 commit bac662c

File tree

285 files changed

+33899
-4528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+33899
-4528
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,15 @@ add_definitions(-DENABLE_PARTIAL_FRONTIER=0) # disable minigun partial frontier
8787
# Source file lists
8888
file(GLOB DGL_SRC
8989
src/*.cc
90+
src/array/*.cc
91+
src/array/cpu/*.cc
9092
src/kernel/*.cc
9193
src/kernel/cpu/*.cc
9294
src/runtime/*.cc
9395
)
9496

9597
file(GLOB_RECURSE DGL_SRC_1
98+
src/api/*.cc
9699
src/graph/*.cc
97100
src/scheduler/*.cc
98101
)

CONTRIBUTORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Contributors
1717
* [Tianyi Zhang](https://github.com/Tiiiger): SGC in Pytorch
1818
* [Jun Chen](https://github.com/kitaev-chen): GIN in Pytorch
1919
* [Aymen Waheb](https://github.com/aymenwah): APPNP in Pytorch
20+
* [Chengqiang Lu](https://github.com/geekinglcq): MGCN, SchNet and MPNN in PyTorch
2021

2122
Other improvement
2223
* [Brett Koonce](https://github.com/brettkoonce)
2324
* [@giuseppefutia](https://github.com/giuseppefutia)
2425
* [@mori97](https://github.com/mori97)
2526
* Hao Jin
26-

Jenkinsfile

Lines changed: 63 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,19 @@ def tutorial_test_linux(backend) {
9494
}
9595

9696
pipeline {
97-
agent none
97+
agent any
9898
stages {
9999
stage("Lint Check") {
100100
agent { docker { image "dgllib/dgl-ci-lint" } }
101101
steps {
102102
init_git()
103103
sh "bash tests/scripts/task_lint.sh"
104104
}
105+
post {
106+
always {
107+
cleanWs disableDeferredWipeout: true, deleteDirs: true
108+
}
109+
}
105110
}
106111
stage("Build") {
107112
parallel {
@@ -110,6 +115,11 @@ pipeline {
110115
steps {
111116
build_dgl_linux("cpu")
112117
}
118+
post {
119+
always {
120+
cleanWs disableDeferredWipeout: true, deleteDirs: true
121+
}
122+
}
113123
}
114124
stage("GPU Build") {
115125
agent {
@@ -122,6 +132,11 @@ pipeline {
122132
sh "nvidia-smi"
123133
build_dgl_linux("gpu")
124134
}
135+
post {
136+
always {
137+
cleanWs disableDeferredWipeout: true, deleteDirs: true
138+
}
139+
}
125140
}
126141
stage("CPU Build (Win64)") {
127142
// Windows build machines are manually added to Jenkins master with
@@ -130,6 +145,11 @@ pipeline {
130145
steps {
131146
build_dgl_win64("cpu")
132147
}
148+
post {
149+
always {
150+
cleanWs disableDeferredWipeout: true, deleteDirs: true
151+
}
152+
}
133153
}
134154
// Currently we don't have Windows GPU build machines
135155
}
@@ -141,12 +161,22 @@ pipeline {
141161
steps {
142162
cpp_unit_test_linux()
143163
}
164+
post {
165+
always {
166+
cleanWs disableDeferredWipeout: true, deleteDirs: true
167+
}
168+
}
144169
}
145170
stage("C++ CPU (Win64)") {
146171
agent { label "windows" }
147172
steps {
148173
cpp_unit_test_win64()
149174
}
175+
post {
176+
always {
177+
cleanWs disableDeferredWipeout: true, deleteDirs: true
178+
}
179+
}
150180
}
151181
stage("Torch CPU") {
152182
agent { docker { image "dgllib/dgl-ci-cpu" } }
@@ -167,6 +197,11 @@ pipeline {
167197
}
168198
}
169199
}
200+
post {
201+
always {
202+
cleanWs disableDeferredWipeout: true, deleteDirs: true
203+
}
204+
}
170205
}
171206
stage("Torch CPU (Win64)") {
172207
agent { label "windows" }
@@ -182,6 +217,11 @@ pipeline {
182217
}
183218
}
184219
}
220+
post {
221+
always {
222+
cleanWs disableDeferredWipeout: true, deleteDirs: true
223+
}
224+
}
185225
}
186226
stage("Torch GPU") {
187227
agent {
@@ -203,6 +243,11 @@ pipeline {
203243
}
204244
}
205245
}
246+
post {
247+
always {
248+
cleanWs disableDeferredWipeout: true, deleteDirs: true
249+
}
250+
}
206251
}
207252
stage("MXNet CPU") {
208253
agent { docker { image "dgllib/dgl-ci-cpu" } }
@@ -212,17 +257,17 @@ pipeline {
212257
unit_test_linux("mxnet", "cpu")
213258
}
214259
}
215-
//stage("Example test") {
216-
// steps {
217-
// unit_test_linux("pytorch", "cpu")
218-
// }
219-
//}
220260
//stage("Tutorial test") {
221261
// steps {
222262
// tutorial_test_linux("mxnet")
223263
// }
224264
//}
225265
}
266+
post {
267+
always {
268+
cleanWs disableDeferredWipeout: true, deleteDirs: true
269+
}
270+
}
226271
}
227272
stage("MXNet GPU") {
228273
agent {
@@ -238,19 +283,21 @@ pipeline {
238283
unit_test_linux("mxnet", "gpu")
239284
}
240285
}
241-
//stage("Example test") {
242-
// steps {
243-
// unit_test_linux("pytorch", "cpu")
244-
// }
245-
//}
246-
//stage("Tutorial test") {
247-
// steps {
248-
// tutorial_test_linux("mxnet")
249-
// }
250-
//}
286+
}
287+
post {
288+
always {
289+
cleanWs disableDeferredWipeout: true, deleteDirs: true
290+
}
251291
}
252292
}
253293
}
254294
}
255295
}
296+
post {
297+
always {
298+
node('windows') {
299+
bat "rmvirtualenv ${BUILD_TAG}"
300+
}
301+
}
302+
}
256303
}

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Deep Graph Library (DGL)
22
[![Build Status](http://ci.dgl.ai:80/buildStatus/icon?job=DGL/master)](http://ci.dgl.ai:80/job/DGL/job/master/)
3-
[![GitHub license](https://dmlc.github.io/img/apache2.svg)](./LICENSE)
3+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](./LICENSE)
44

55
[Documentation](https://docs.dgl.ai) | [DGL at a glance](https://docs.dgl.ai/tutorials/basics/1_first.html#sphx-glr-tutorials-basics-1-first-py) |
66
[Model Tutorials](https://docs.dgl.ai/tutorials/models/index.html) | [Discussion Forum](https://discuss.dgl.ai)
@@ -15,11 +15,11 @@ A summary of the model accuracy and training speed with the Pytorch backend (on
1515

1616
| Model | Reported <br> Accuracy | DGL <br> Accuracy | Author's training speed (epoch time) | DGL speed (epoch time) | Improvement |
1717
| ----- | ----------------- | ------------ | ------------------------------------ | ---------------------- | ----------- |
18-
| [GCN](https://arxiv.org/abs/1609.02907) | 81.5% | 81.0% | [0.0051s (TF)](https://github.com/tkipf/gcn) | 0.0038s | 1.34x |
19-
| [GAT](https://arxiv.org/abs/1710.10903) | 83.0% | 83.9% | [0.0982s (TF)](https://github.com/PetarV-/GAT) | 0.0076s | 12.9x |
18+
| [GCN](https://arxiv.org/abs/1609.02907) | 81.5% | 81.0% | [0.0051s (TF)](https://github.com/tkipf/gcn) | 0.0031s | 1.64x |
19+
| [GAT](https://arxiv.org/abs/1710.10903) | 83.0% | 83.9% | [0.0982s (TF)](https://github.com/PetarV-/GAT) | 0.0113s | 8.69x |
2020
| [SGC](https://arxiv.org/abs/1902.07153) | 81.0% | 81.9% | n/a | 0.0008s | n/a |
2121
| [TreeLSTM](http://arxiv.org/abs/1503.00075) | 51.0% | 51.72% | [14.02s (DyNet)](https://github.com/clab/dynet/tree/master/examples/treelstm) | 3.18s | 4.3x |
22-
| [R-GCN <br> (classification)](https://arxiv.org/abs/1703.06103) | 73.23% | 73.53% | [0.2853s (Theano)](https://github.com/tkipf/relational-gcn) | 0.0097s | 29.4x |
22+
| [R-GCN <br> (classification)](https://arxiv.org/abs/1703.06103) | 73.23% | 73.53% | [0.2853s (Theano)](https://github.com/tkipf/relational-gcn) | 0.0075s | 38.2x |
2323
| [R-GCN <br> (link prediction)](https://arxiv.org/abs/1703.06103) | 0.158 | 0.151 | [2.204s (TF)](https://github.com/MichSchli/RelationPrediction) | 0.453s | 4.86x |
2424
| [JTNN](https://arxiv.org/abs/1802.04364) | 96.44% | 96.44% | [1826s (Pytorch)](https://github.com/wengong-jin/icml18-jtnn) | 743s | 2.5x |
2525
| [LGNN](https://arxiv.org/abs/1705.08415) | 94% | 94% | n/a | 1.45s | n/a |
@@ -34,13 +34,13 @@ We are currently in Beta stage. More features and improvements are coming.
3434

3535
## News
3636

37+
v0.3 has just been released! Huge performance improvement (up to 19x). See release note
38+
[here](https://github.com/dmlc/dgl/releases/tag/v0.3).
39+
3740
We presented DGL at [GTC 2019](https://www.nvidia.com/en-us/gtc/) as an
3841
instructor-led training session. Check out our slides and tutorial materials
3942
[here](https://github.com/dglai/DGL-GTC2019)!!!
4043

41-
v0.2 has just been released! Many features, bugfix and performance improvement. See release note
42-
[here](https://github.com/dmlc/dgl/releases/tag/v0.2).
43-
4444
## System requirements
4545

4646
DGL should work on

cmake/modules/CUDA.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ macro(dgl_config_cuda out_variable)
231231
add_definitions(-DDGL_USE_CUDA)
232232

233233
file(GLOB_RECURSE DGL_CUDA_SRC
234+
src/array/cuda/*.cc
235+
src/array/cuda/*.cu
234236
src/kernel/cuda/*.cc
235237
src/kernel/cuda/*.cu
236238
src/runtime/cuda/*.cc

conda/dgl/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: dgl{{ environ.get('DGL_PACKAGE_SUFFIX', '') }}
3-
version: "0.3"
3+
version: "0.4"
44

55
source:
66
git_rev: 0.3.x

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Requirements
55
------------
66
* sphinx
77
* sphinx-gallery
8+
* sphinx_rtd_theme
89
* Both pytorch and mxnet installed.
910

1011
Build documents

docs/source/api/python/batch.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ Graph Readout
3737
mean_edges
3838
max_nodes
3939
max_edges
40+
topk_nodes
41+
topk_edges
42+
softmax_nodes
43+
softmax_edges
44+
broadcast_nodes
45+
broadcast_edges

docs/source/api/python/function.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,32 @@ Message functions
1414
copy_src
1515
copy_edge
1616
src_mul_edge
17+
copy_u
18+
copy_e
19+
u_add_v
20+
u_sub_v
21+
u_mul_v
22+
u_div_v
23+
u_add_e
24+
u_sub_e
25+
u_mul_e
26+
u_div_e
27+
v_add_u
28+
v_sub_u
29+
v_mul_u
30+
v_div_u
31+
v_add_e
32+
v_sub_e
33+
v_mul_e
34+
v_div_e
35+
e_add_u
36+
e_sub_u
37+
e_mul_u
38+
e_div_u
39+
e_add_v
40+
e_sub_v
41+
e_mul_v
42+
e_div_v
1743

1844
Reduce functions
1945
----------------
@@ -23,3 +49,6 @@ Reduce functions
2349

2450
sum
2551
max
52+
min
53+
prod
54+
mean

docs/source/api/python/graph.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Using Node/edge features
9595
DGLGraph.edge_attr_schemes
9696
DGLGraph.set_n_initializer
9797
DGLGraph.set_e_initializer
98+
DGLGraph.local_var
99+
DGLGraph.local_scope
98100

99101
Computing with DGLGraph
100102
-----------------------

0 commit comments

Comments
 (0)