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

Method FreeMemoryMb

catboost/cuda/cuda_lib/cuda_manager.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32double TCudaManager::FreeMemoryMb(ui32 devId, bool waitComplete) const {
33 if (waitComplete) {
34 GetCudaManager().WaitComplete();
35 }
36 auto devPtr = GetState().Devices[devId];
37 return devPtr->GetMemoryState().FreeGpuRam * 1.0 / 1024 / 1024;
38}
39
40double TCudaManager::TotalMemoryMb(ui32 devId) const {
41 auto devPtr = GetState().Devices[devId];

Callers 5

StartCudaManagerFunction · 0.80
GetFreeMemoryMethod · 0.80

Calls 2

WaitCompleteMethod · 0.45
GetMemoryStateMethod · 0.45

Tested by

no test coverage detected