MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
occa.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  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.
 
occa::memory mfem::OccaMemoryWrap (void *ptr, std::size_t bytes)
 Wrap a pointer as occa::memory with the default occa::device used by MFEM.
 
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.
 
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.
 
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.
 
bool mfem::DeviceCanUseOcca ()
 Function that determines if an OCCA kernel should be used, based on the current mfem::Device configuration.