FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Memory::Manager Class Reference

Memory management interface class. More...

#include <memory_arbiter.hpp>

Static Public Member Functions

static std::size_t bytes_allocated_cuda ()
 Returns the total number of bytes currently allocated in cuda memory over all blocks. More...
 
static std::size_t bytes_allocated_main ()
 Returns the total number of bytes currently allocated in main memory over all blocks. More...
 
static std::size_t bytes_reserved ()
 Returns the total number of bytes reserved over all memory blocks. More...
 
static void finalize ()
 Finalizes FEAT's memory management. More...
 
static void free_all_unmapped (Location mem_loc)
 Frees all memory blocks for a given set of memory location that are currently not mapped to a view. More...
 
static void initialize (int argc, char **argv)
 Initializes FEAT's memory management. More...
 

Detailed Description

Memory management interface class.

This class acts as an interface for all kinds on memory-management settings.

Please note that there is no need to directly interact with this class except for debugging and profiling purposes.

Author
Peter Zajac

Definition at line 1132 of file memory_arbiter.hpp.

Member Function Documentation

◆ bytes_allocated_cuda()

std::size_t FEAT::Memory::Manager::bytes_allocated_cuda ( )
static

Returns the total number of bytes currently allocated in cuda memory over all blocks.

Definition at line 1517 of file memory_arbiter.cpp.

◆ bytes_allocated_main()

std::size_t FEAT::Memory::Manager::bytes_allocated_main ( )
static

Returns the total number of bytes currently allocated in main memory over all blocks.

Definition at line 1503 of file memory_arbiter.cpp.

◆ bytes_reserved()

std::size_t FEAT::Memory::Manager::bytes_reserved ( )
static

Returns the total number of bytes reserved over all memory blocks.

Definition at line 1490 of file memory_arbiter.cpp.

◆ finalize()

void FEAT::Memory::Manager::finalize ( )
static

Finalizes FEAT's memory management.

This function is automatically called by Runtime::finalize(), so there is no point in calling it by yourself.

Definition at line 1469 of file memory_arbiter.cpp.

Referenced by FEAT::Runtime::finalize().

◆ free_all_unmapped()

void FEAT::Memory::Manager::free_all_unmapped ( Location  mem_loc)
static

Frees all memory blocks for a given set of memory location that are currently not mapped to a view.

Parameters
[in]mem_locA combination of memory locations on which the currently unmapped memory blocks have to be freed
Note
This function never frees main memory, even if requested.

Definition at line 1480 of file memory_arbiter.cpp.

◆ initialize()

void FEAT::Memory::Manager::initialize ( int  argc,
char **  argv 
)
static

Initializes FEAT's memory management.

This function is automatically called by Runtime::initialize(), so there is no point in calling it by yourself.

Definition at line 1464 of file memory_arbiter.cpp.

Referenced by FEAT::Runtime::initialize().


The documentation for this class was generated from the following files: