PetscMemTypeDevice#

Returns PETSC_TRUE if a given PetscMemType refers to any kind of device (GPU) memory

Synopsis#

#include <petscdevicetypes.h>
PetscBool PetscMemTypeDevice(PetscMemType m)

Not Collective; No Fortran Support

Input Parameter#

See Also#

PetscMemType, PetscMemTypeHost(), PetscMemTypeCUDA(), PetscMemTypeHIP(), PetscMemTypeSYCL(), PetscMemTypeNVSHMEM()

Level#

intermediate

Location#

include/petscdevicetypes.h


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages