16 #ifndef GEOS_COMMON_MemoryInfos_HPP_
17 #define GEOS_COMMON_MemoryInfos_HPP_
19 #include "umpire/util/MemoryResourceTraits.hpp"
23 #if defined( GEOS_USE_CUDA )
42 MemoryInfos( umpire::MemoryResourceTraits::resource_type resourceType );
66 size_t m_availableMemory;
68 bool m_physicalMemoryHandled;
Class to fetch and store memory information for different resource types.
MemoryInfos(umpire::MemoryResourceTraits::resource_type resourceType)
Constructor for MemoryInfos.
size_t getAvailableMemory() const
Get the available memory for the resource type.
bool isPhysicalMemoryHandled() const
Check if physical memory is handled.
size_t getTotalMemory() const
Get the total memory available for the resource type.