MCPcopy Create free account
hub / github.com/dmlc/parameter_server / MyNodeID

Function MyNodeID

src/ps.h:33–33  ·  view source on GitHub ↗

Each node has an unique string id.

Source from the content-addressed store, hash-verified

31
32// Each node has an unique string id.
33inline std::string MyNodeID() { return MyNode().id(); }
34
35// query the role of this node
36inline int IsWorker() { return MyNode().role() == Node::WORKER; }

Callers 1

WorkerNodeMainFunction · 0.85

Calls 2

MyNodeFunction · 0.85
idMethod · 0.45

Tested by

no test coverage detected