Skip to content

Commit 2e64bba

Browse files
authored
Patch local kernel import (#14)
* Experiments running after build system change * Patch import statement after build system change
1 parent 62431f2 commit 2e64bba

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

DGraph/distributed/RankLocalOps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import torch
1919

2020
try:
21-
from torch_local import local_masked_gather, local_masked_scatter
21+
from DGraph.torch_local import local_masked_gather, local_masked_scatter
2222

2323
_LOCAL_OPT_KERNELS_AVAILABLE = True
2424
except ImportError:

experiments/OGB/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ def main(
329329
comm = SingleProcessDummyCommunicator()
330330

331331
else:
332-
dist.init_process_group(backend="nccl")
332+
if not dist.is_initialized():
333+
dist.init_process_group(backend="nccl")
333334
comm = Communicator.init_process_group(_communicator)
334335

335336
# Must pass the node rank placement file the first time

0 commit comments

Comments
 (0)