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

Function run_server

tests/python/pytorch/distributed/optim/test_dist_optim.py:73–83  ·  view source on GitHub ↗
(graph_name, server_id, server_count, num_clients, shared_mem)

Source from the content-addressed store, hash-verified

71
72
73def run_server(graph_name, server_id, server_count, num_clients, shared_mem):
74 g = DistGraphServer(
75 server_id,
76 "optim_ip_config.txt",
77 num_clients,
78 server_count,
79 "/tmp/dist_graph/{}.json".format(graph_name),
80 disable_shared_mem=not shared_mem,
81 )
82 print("start server", server_id)
83 g.start()
84
85
86def initializer(shape, dtype):

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
DistGraphServerClass · 0.90
formatMethod · 0.80

Tested by

no test coverage detected