PetscGetMemType#
Query the PetscMemType
of a pointer
Synopsis#
#include <petscdevice.h>
PetscErrorCode PetscGetMemType(const void *ptr, PetscMemType *type)
Not Collective
Input Parameter#
ptr - The pointer to query (may be
NULL
)
Output Parameter#
type - The
PetscMemType
of the pointer
Notes#
Currently only CUDA and HIP memtypes are supported.
See Also#
so: PetscMemType
, PetscDeviceMalloc()
, PetscDeviceCalloc()
, PetscDeviceFree()
,
PetscDeviceArrayCopy()
, PetscDeviceArrayZero()
Level#
intermediate
Location#
src/sys/objects/device/util/memory.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages