MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetSourceID

Method GetSourceID

tensorflow/contrib/mpi/mpi_utils.h:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 explicit MPIUtils(const std::string& worker_name);
46
47 const int GetSourceID(const std::string& task_id) const {
48 auto it = name_to_id_.find(task_id);
49 if (it == name_to_id_.end()) {
50 LOG(FATAL) << "Failed to convert worker name to MPI index: " << task_id;
51 }
52 return it->second;
53 }
54
55 private:
56 void InitMPI();

Callers 1

RecvFromRemoteAsyncMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected