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

Go to the source code of this file.

Classes

struct  mfem::Backend
 MFEM backends. More...
 
class  mfem::Device
 The MFEM Device class abstracts hardware devices such as GPUs, as well as programming models such as CUDA, OCCA, RAJA and OpenMP. More...
 

Namespaces

 mfem
 

Functions

template<typename T >
const T * mfem::Read (const Memory< T > &mem, int size, bool on_dev=true)
 Get a pointer for read access to mem with the mfem::Device MemoryClass, if on_dev = true, or MemoryClass::HOST, otherwise. More...
 
template<typename T >
const T * mfem::HostRead (const Memory< T > &mem, int size)
 Shortcut to Read(const Memory<T> &mem, int size, false) More...
 
template<typename T >
T * mfem::Write (Memory< T > &mem, int size, bool on_dev=true)
 Get a pointer for write access to mem with the mfem::Device MemoryClass, if on_dev = true, or MemoryClass::HOST, otherwise. More...
 
template<typename T >
const T * mfem::HostWrite (const Memory< T > &mem, int size)
 Shortcut to Write(const Memory<T> &mem, int size, false) More...
 
template<typename T >
T * mfem::ReadWrite (Memory< T > &mem, int size, bool on_dev=true)
 Get a pointer for read+write access to mem with the mfem::Device MemoryClass, if on_dev = true, or MemoryClass::HOST, otherwise. More...
 
template<typename T >
const T * mfem::HostReadWrite (const Memory< T > &mem, int size)
 Shortcut to ReadWrite(const Memory<T> &mem, int size, false) More...