Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Dnn::Compute::MemoryStats Struct Referenceexport

Global memory statistics for all TrackedMemoryResource instances. More...

Static Public Member Functions

static void print (std::ostream &os=std::cout)
 Prints current memory statistics to the specified output stream.
 
static void reset ()
 Resets all memory statistics to zero.
 

Static Public Attributes

static std::atomic< size_t > allocationCount
 
static std::atomic< size_t > currentUsage
 
static std::atomic< size_t > deallocationCount
 
static std::atomic< size_t > peakUsage
 
static std::atomic< size_t > totalAllocated
 
static std::atomic< size_t > totalDeallocated
 

Detailed Description

Global memory statistics for all TrackedMemoryResource instances.

Member Function Documentation

◆ print()

static void Mila::Dnn::Compute::MemoryStats::print ( std::ostream &  os = std::cout)
inlinestatic

Prints current memory statistics to the specified output stream.

◆ reset()

static void Mila::Dnn::Compute::MemoryStats::reset ( )
inlinestatic

Resets all memory statistics to zero.

Member Data Documentation

◆ allocationCount

std::atomic< size_t > Mila::Dnn::Compute::MemoryStats::allocationCount
static

◆ currentUsage

std::atomic< size_t > Mila::Dnn::Compute::MemoryStats::currentUsage
static

◆ deallocationCount

std::atomic< size_t > Mila::Dnn::Compute::MemoryStats::deallocationCount
static

◆ peakUsage

std::atomic< size_t > Mila::Dnn::Compute::MemoryStats::peakUsage
static

◆ totalAllocated

std::atomic< size_t > Mila::Dnn::Compute::MemoryStats::totalAllocated
static

◆ totalDeallocated

std::atomic< size_t > Mila::Dnn::Compute::MemoryStats::totalDeallocated
static

The documentation for this struct was generated from the following file: