PetscDeviceGetType#
Get the type of device
Synopsis#
#include <petscdevice.h>
PetscErrorCode PetscDeviceGetType(PetscDevice device, PetscDeviceType *type)
Not Collective
Input Parameter#
device - The
PetscDevice
Output Parameter#
type - The
PetscDeviceType
See Also#
PetscDevice, PetscDeviceType, PetscDeviceSetDefaultDeviceType(),
PetscDeviceCreate(), PetscDeviceConfigure(), PetscDeviceDestroy(),
PetscDeviceGetDeviceId(), PETSC_DEVICE_DEFAULT()
Level#
intermediate
Location#
Examples#
src/mat/tests/ex254.c
src/mat/tests/ex324.c
src/vec/is/sf/tests/ex26.c
src/vec/vec/tests/ex65.c
src/vec/vec/tests/ex69.c
Index of all Device routines
Table of Contents for all manual pages
Index of all manual pages