MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
hip.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  mfem
 

Functions

void mfem::mfem_hip_error (hipError_t err, const char *expr, const char *func, const char *file, int line)
 
void * mfem::HipMemAlloc (void **d_ptr, size_t bytes)
 Allocates device memory.
 
void * mfem::HipMallocManaged (void **d_ptr, size_t bytes)
 Allocates managed device memory.
 
void * mfem::HipMemAllocHostPinned (void **ptr, size_t bytes)
 Allocates page-locked (pinned) host memory.
 
void * mfem::HipMemFree (void *d_ptr)
 Frees device memory.
 
void * mfem::HipMemFreeHostPinned (void *ptr)
 Frees page-locked (pinned) host memory and returns destination ptr.
 
void * mfem::HipMemcpyHtoD (void *d_dst, const void *h_src, size_t bytes)
 Copies memory from Host to Device.
 
void * mfem::HipMemcpyHtoDAsync (void *d_dst, const void *h_src, size_t bytes)
 Copies memory from Host to Device.
 
void * mfem::HipMemcpyDtoD (void *d_dst, const void *d_src, size_t bytes)
 Copies memory from Device to Device.
 
void * mfem::HipMemcpyDtoDAsync (void *d_dst, const void *d_src, size_t bytes)
 Copies memory from Device to Device.
 
void * mfem::HipMemcpyDtoH (void *h_dst, const void *d_src, size_t bytes)
 Copies memory from Device to Host.
 
void * mfem::HipMemcpyDtoHAsync (void *h_dst, const void *d_src, size_t bytes)
 Copies memory from Device to Host.
 
void mfem::HipCheckLastError ()
 Check the error code returned by hipGetLastError(), aborting on error.
 
int mfem::HipGetDeviceCount ()
 Get the number of HIP devices.