MCPcopy Create free account
hub / github.com/catboost/catboost / GetIBMemPool

Function GetIBMemPool

library/cpp/netliba/v6/ib_mem.cpp:153–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 static bool IBWasInitialized;
152
153 TIntrusivePtr<TIBMemPool> GetIBMemPool() {
154 TGuard<TMutex> gg(IBMemMutex);
155 if (IBWasInitialized) {
156 return IBMemPool;
157 }
158 IBWasInitialized = true;
159
160 TIntrusivePtr<TIBPort> ibPort = GetIBDevice();
161 if (ibPort.Get() == nullptr) {
162 return nullptr;
163 }
164 IBMemPool = new TIBMemPool(ibPort->GetCtx());
165 return IBMemPool;
166 }
167}

Callers 4

CreateCollectiveFunction · 0.70
TIBClientServerMethod · 0.70
CopyMethod · 0.70
TIBMemStreamMethod · 0.70

Calls 3

GetIBDeviceFunction · 0.70
GetMethod · 0.45
GetCtxMethod · 0.45

Tested by

no test coverage detected