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
dfa32286
Unverified
Commit
dfa32286
authored
Jan 23, 2024
by
Ramon Zhou
Committed by
GitHub
Jan 23, 2024
Browse files
[Misc] DGL multi-gpu example run error work around (#6999)
parent
d2497448
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
examples/multigpu/node_classification_sage.py
examples/multigpu/node_classification_sage.py
+10
-6
No files found.
examples/multigpu/node_classification_sage.py
View file @
dfa32286
...
...
@@ -171,11 +171,15 @@ def train(
use_uva
,
):
# Instantiate a neighbor sampler
if
args
.
mode
==
"benchmark"
:
# A work-around to prevent CUDA running error. For more details, please
# see https://github.com/dmlc/dgl/issues/6697.
sampler
=
NeighborSampler
([
10
,
10
,
10
],
fused
=
False
)
else
:
sampler
=
NeighborSampler
(
[
10
,
10
,
10
],
prefetch_node_feats
=
[
"feat"
],
prefetch_labels
=
[
"label"
],
fused
=
(
args
.
mode
!=
"benchmark"
),
)
train_dataloader
=
DataLoader
(
g
,
...
...
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