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

Function test_copy_from_gpu

tests/python/common/test_heterograph-shared-memory.py:95–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 reason="Not support tensorflow for now",
94)
95def test_copy_from_gpu():
96 hg = create_test_graph(idtype=F.int32)
97 hg_gpu = hg.to(F.cuda())
98 hg_share = hg_gpu.shared_memory("hg_gpu")
99 p = mp.Process(target=sub_proc, args=(hg, "hg_gpu"))
100 p.start()
101 p.join()
102
103
104# TODO: Test calling shared_memory with Blocks (a subclass of HeteroGraph)

Calls 6

cudaMethod · 0.80
startMethod · 0.80
create_test_graphFunction · 0.70
toMethod · 0.45
shared_memoryMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected