Global memory statistics for all TrackedMemoryResource instances.
More...
|
| 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.
|
| |
Global memory statistics for all TrackedMemoryResource instances.
◆ 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.
◆ 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: