PetscDeviceType#

Kind of accelerator device backend

Synopsis#

PETSC_DEVICE_HOST - Host, no accelerator backend found
PETSC_DEVICE_CUDA - CUDA enabled GPU
PETSC_DEVICE_HIP  - ROCM/HIP enabled GPU
PETSC_DEVICE_SYCL - SYCL enabled device
PETSC_DEVICE_MAX  - Always 1 greater than the largest valid PetscDeviceType, invalid type, do not use

Notes#

One can also use the PETSC_DEVICE_DEFAULT() routine to get the current default PetscDeviceType.

See Also#

PetscDevice, PetscDeviceInitType, PetscDeviceCreate(), PETSC_DEVICE_DEFAULT()

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