MFEM  v4.1.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Classes | Namespaces | Enumerations | Functions | Variables
mem_manager.hpp File Reference

Go to the source code of this file.


class  mfem::Memory< T >
 Class used by MFEM to store pointers to host and/or device memory. More...
class  mfem::MemoryManager
 The memory manager class. More...




enum  mfem::MemoryType {
  mfem::MemoryType::HOST, mfem::MemoryType::HOST_32, mfem::MemoryType::HOST_64, mfem::MemoryType::HOST_DEBUG,
  mfem::MemoryType::HOST_UMPIRE, mfem::MemoryType::MANAGED, mfem::MemoryType::DEVICE, mfem::MemoryType::DEVICE_DEBUG,
  mfem::MemoryType::DEVICE_UMPIRE, mfem::MemoryType::SIZE
 Memory types supported by MFEM. More...
enum  mfem::MemoryClass {
  mfem::MemoryClass::HOST, mfem::MemoryClass::HOST_32, mfem::MemoryClass::HOST_64, mfem::MemoryClass::DEVICE,
 Memory classes identify sets of memory types. More...


bool mfem::IsHostMemory (MemoryType mt)
 Return true if the given memory type is in MemoryClass::HOST. More...
bool mfem::IsDeviceMemory (MemoryType mt)
MemoryType mfem::GetMemoryType (MemoryClass mc)
 Return a suitable MemoryType for a given MemoryClass. More...
MemoryClass mfem::operator* (MemoryClass mc1, MemoryClass mc2)
 Return a suitable MemoryClass from a pair of MemoryClasses. More...
void mfem::MemoryPrintFlags (unsigned flags)
 Print the state of a Memory object based on its internal flags. Useful in a debugger. See also Memory<T>::PrintFlags(). More...


constexpr int mfem::MemoryTypeSize = static_cast<int>(MemoryType::SIZE)
 Static casts to 'int' and sizes of some useful memory types. More...
constexpr int mfem::HostMemoryType = static_cast<int>(MemoryType::HOST)
constexpr int mfem::HostMemoryTypeSize = static_cast<int>(MemoryType::DEVICE)
constexpr int mfem::DeviceMemoryType = static_cast<int>(MemoryType::MANAGED)
constexpr int mfem::DeviceMemoryTypeSize = MemoryTypeSize - DeviceMemoryType