GGEMS class handling RAM memory.
More...
#include "GGEMSRAMManager.hh"
GGEMS class handling RAM memory.
Definition at line 50 of file GGEMSRAMManager.hh.
◆ GGEMSRAMManager() [1/3]
GGEMSRAMManager::GGEMSRAMManager |
( |
void |
| ) |
|
|
private |
◆ ~GGEMSRAMManager()
GGEMSRAMManager::~GGEMSRAMManager |
( |
void |
| ) |
|
|
private |
◆ GGEMSRAMManager() [2/3]
Avoid copy of the class by reference.
- Parameters
-
ram_manager | - reference on the ram manager |
◆ GGEMSRAMManager() [3/3]
Avoid copy of the class by rvalue reference.
- Parameters
-
ram_manager | - rvalue reference on the ram manager |
◆ Clean()
void GGEMSRAMManager::Clean |
( |
void |
| ) |
|
◆ DecrementRAMMemory()
void GGEMSRAMManager::DecrementRAMMemory |
( |
std::string const & |
class_name, |
|
|
GGsize const & |
index, |
|
|
GGsize const & |
size |
|
) |
| |
decrement the size of the global allocated buffer
- Parameters
-
class_name | - name of class deallocating memory |
index | - index of device |
size | - size of the allocated buffer in byte |
Definition at line 134 of file GGEMSRAMManager.cc.
◆ GetInstance()
◆ IncrementRAMMemory()
void GGEMSRAMManager::IncrementRAMMemory |
( |
std::string const & |
class_name, |
|
|
GGsize const & |
index, |
|
|
GGsize const & |
size |
|
) |
| |
increment the size of the global allocated buffer
- Parameters
-
class_name | - name of class allocating memory |
index | - index of device |
size | - size of the allocated buffer in byte |
Definition at line 110 of file GGEMSRAMManager.cc.
◆ IsBufferSizeCorrect()
bool GGEMSRAMManager::IsBufferSizeCorrect |
( |
GGsize const & |
index, |
|
|
GGsize const & |
size |
|
) |
| const |
|
inline |
Check the size of buffer depending on device limit, false if buffer size if too big.
- Parameters
-
index | - index of device |
size | - size in bytes of buffer |
- Returns
- true if buffer size is correct
Definition at line 129 of file GGEMSRAMManager.hh.
◆ IsEnoughAvailableRAMMemory()
bool GGEMSRAMManager::IsEnoughAvailableRAMMemory |
( |
GGsize const & |
index, |
|
|
GGsize const & |
size |
|
) |
| const |
|
inline |
Checking available RAM memory on device.
- Parameters
-
index | - index of device |
size | - size in bytes to allocate |
- Returns
- true if enough available RAM memory
Definition at line 116 of file GGEMSRAMManager.hh.
◆ operator=() [1/2]
Avoid copy of the class by rvalue reference.
- Parameters
-
ram_manager | - rvalue reference on the ram manager |
◆ operator=() [2/2]
Avoid assignement of the class by reference.
- Parameters
-
ram_manager | - reference on the ram manager |
◆ PrintRAMStatus()
void GGEMSRAMManager::PrintRAMStatus |
( |
void |
| ) |
const |
◆ allocated_memories_
◆ allocated_ram_
GGsize* GGEMSRAMManager::allocated_ram_ |
|
private |
◆ max_available_ram_
GGsize* GGEMSRAMManager::max_available_ram_ |
|
private |
◆ max_buffer_size_
GGsize* GGEMSRAMManager::max_buffer_size_ |
|
private |
◆ number_detected_devices_
GGsize GGEMSRAMManager::number_detected_devices_ |
|
private |
The documentation for this class was generated from the following files: