PetscDeviceCopyMode#

Describes the copy direction of a device-aware memcpy

Synopsis#

PETSC_DEVICE_COPY_HTOH - Copy from host memory to host memory
PETSC_DEVICE_COPY_DTOH - Copy from device memory to host memory
PETSC_DEVICE_COPY_HTOD - Copy from host memory to device memory
PETSC_DEVICE_COPY_DTOD - Copy from device memory to device memory
PETSC_DEVICE_COPY_AUTO - Infer the copy direction from the pointers

See Also#

PetscDeviceArrayCopy(), PetscDeviceMemcpy()

Level#

beginner

Location#

include/petscdevicetypes.h


Edit on GitLab

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