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

Go to the source code of this file.

Namespaces

 mfem
 

Functions

void mfem::mfem_cuda_error (cudaError_t err, const char *expr, const char *func, const char *file, int line)
 
void * mfem::CuMemAlloc (void **d_ptr, size_t bytes)
 Allocates device memory. More...
 
void * mfem::CuMallocManaged (void **d_ptr, size_t bytes)
 Allocates managed device memory. More...
 
void * mfem::CuMemFree (void *d_ptr)
 Frees device memory. More...
 
void * mfem::CuMemcpyHtoD (void *d_dst, const void *h_src, size_t bytes)
 Copies memory from Host to Device. More...
 
void * mfem::CuMemcpyHtoDAsync (void *d_dst, const void *h_src, size_t bytes)
 Copies memory from Host to Device. More...
 
void * mfem::CuMemcpyDtoD (void *d_dst, const void *d_src, size_t bytes)
 Copies memory from Device to Device. More...
 
void * mfem::CuMemcpyDtoDAsync (void *d_dst, const void *d_src, size_t bytes)
 Copies memory from Device to Device. More...
 
void * mfem::CuMemcpyDtoH (void *h_dst, const void *d_src, size_t bytes)
 Copies memory from Device to Host. More...
 
void * mfem::CuMemcpyDtoHAsync (void *h_dst, const void *d_src, size_t bytes)
 Copies memory from Device to Host. More...
 
void mfem::CuCheckLastError ()
 Check the error code returned by cudaGetLastError(), aborting on error. More...
 
int mfem::CuGetDeviceCount ()
 Get the number of CUDA devices. More...