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

Method RequestHandlesImpl

catboost/cuda/cuda_lib/single_device.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3namespace NCudaLib {
4 void TCudaSingleDevice::RequestHandlesImpl() {
5 if (FreeHandles.size() == 0) {
6 auto request = LaunchFunc(TRequestHandlesTask(OBJECT_HANDLE_REQUEST_SIZE));
7 request->Wait();
8 FreeHandles = request->Get();
9 TotalHandles += FreeHandles.size();
10 }
11 }
12
13 ui64 TCudaSingleDevice::GetFreeHandle() {
14 RequestHandlesImpl();

Callers

nothing calls this directly

Calls 4

TRequestHandlesTaskClass · 0.85
sizeMethod · 0.45
WaitMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected