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

Method Start

tensorflow/contrib/verbs/verbs_server_lib.cc:101–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101Status VerbsServer::Start() {
102 Status s = GrpcServer::Start();
103 {
104 mutex_lock l(mu_);
105 if (verbs_state_ == DISCONNECTED) {
106 // verbs_thread needs to be initiated
107 // before rdma_mgr sets up the rdma channels.
108 verbs_thread_.reset(worker_env()->env->StartThread(
109 ThreadOptions(), "TF_verbs_service",
110 [this] { verbs_service_->HandleRPCsLoop(); }));
111 rdma_mgr_->SetupChannels();
112 CHECK(rdma_mgr_->ConnectivityCheck()) << "Connectivity check failed!";
113 rdma_mgr_->InitAllocators();
114 verbs_state_ = CONNECTED;
115 }
116 }
117 return s;
118}
119
120Status VerbsServer::Join() {
121 Status s = GrpcServer::Join();

Callers

nothing calls this directly

Calls 7

ThreadOptionsClass · 0.85
SetupChannelsMethod · 0.80
ConnectivityCheckMethod · 0.80
InitAllocatorsMethod · 0.80
resetMethod · 0.45
StartThreadMethod · 0.45
HandleRPCsLoopMethod · 0.45

Tested by

no test coverage detected