MCPcopy
hub / github.com/dmlc/dgl / test_torch_ipc

Function test_torch_ipc

tests/python/pytorch/test_multiprocessing-ipc.py:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15@unittest.skipIf(os.name == "nt", reason="Do not support windows yet")
16def test_torch_ipc():
17 g = dgl.graph(([0, 1, 2], [1, 2, 3]))
18 ctx = mp.get_context("spawn")
19 p = ctx.Process(target=sub_ipc, args=(g,))
20
21 p.start()
22 p.join()
23
24
25if __name__ == "__main__":

Callers 1

Calls 3

startMethod · 0.80
graphMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected