petsc-main 2021-03-04
PetscMemType
Memory type of a pointer
Synopsis
typedef enum {PETSC_MEMTYPE_HOST=0, PETSC_MEMTYPE_DEVICE=1, PETSC_MEMTYPE_CUDA=1, PETSC_MEMTYPE_HIP=3} PetscMemType;
Developer Note
Encoding of the bitmask in binary: xx0=HOST, xx1=DEVICE, x01 for CUDA, x11 for HIP.
See Also
VecGetArrayAndMemType(), PetscSFBcastWithMemTypeBegin(), PetscSFReduceWithMemTypeBegin()
Level
beginner
Location
include/petscsystypes.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages