Skip to content

Commit

Permalink
change test case
Browse files Browse the repository at this point in the history
  • Loading branch information
CfromBU committed Dec 18, 2024
1 parent 4eb9a9d commit 5f848d4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tests/distributed/test_distributed_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,25 @@ def create_hetero_graph(dense=False, empty=False):

part_config = tmpdir / "test_sampling.json"

dgl.distributed.initialize("rpc_ip_config.txt")
pserver_list = []
ctx = mp.get_context("spawn")
for i in range(num_server):
p = ctx.Process(
target=start_server,
args=(
i,
tmpdir,
num_server > 1,
"test_sampling",
["csc", "coo"],
True,
),
)
p.start()
time.sleep(1)
pserver_list.append(p)

dgl.distributed.initialize("rpc_ip_config.txt", use_graphbolt=True)
dist_graph = DistGraph("test_sampling", part_config=part_config)

os.environ["DGL_DIST_DEBUG"] = "1"
Expand Down

0 comments on commit 5f848d4

Please sign in to comment.