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

Go to the source code of this file.

Namespaces

 mfem
 

Typedefs

typedef std::pair< int, int > mfem::occa_id_t
 
typedef std::map< occa_id_t,
occa::kernel > 
mfem::occa_kernel_t
 

Functions

occa::device & mfem::OccaDev ()
 Return the default occa::device used by MFEM. More...
 
occa::memory mfem::OccaMemoryWrap (void *ptr, std::size_t bytes)
 Wrap a pointer as occa::memory with the default occa::device used by MFEM. More...
 
template<typename T >
const occa::memory mfem::OccaMemoryRead (const Memory< T > &mem, size_t size)
 Wrap a Memory object as occa::memory for read only access with the mfem::Device MemoryClass. The returned occa::memory is associated with the default occa::device used by MFEM. More...
 
template<typename T >
occa::memory mfem::OccaMemoryWrite (Memory< T > &mem, size_t size)
 Wrap a Memory object as occa::memory for write only access with the mfem::Device MemoryClass. The returned occa::memory is associated with the default occa::device used by MFEM. More...
 
template<typename T >
occa::memory mfem::OccaMemoryReadWrite (Memory< T > &mem, size_t size)
 Wrap a Memory object as occa::memory for read-write access with the mfem::Device MemoryClass. The returned occa::memory is associated with the default occa::device used by MFEM. More...
 
bool mfem::DeviceCanUseOcca ()
 Function that determines if an OCCA kernel should be used, based on the current mfem::Device configuration. More...