# PetscDevice
Object to manage an accelerator "device" (usually a GPU) 
## Synopsis
```
#include <petscdevicetypes.h> 
typedef struct _n_PetscDevice *PetscDevice;
```

## Notes
This object is used to house configuration and state of a device, but does not offer any
ability to interact with or drive device computation. This functionality is facilitated
instead by the `PetscDeviceContext` object.




## See Also
 `PetscDeviceType`, `PetscDeviceInitType`, `PetscDeviceCreate()`,
`PetscDeviceConfigure()`, `PetscDeviceDestroy()`, `PetscDeviceContext`,
`PetscDeviceContextSetDevice()`, `PetscDeviceContextGetDevice()`, `PetscDeviceGetAttribute()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscdevicetypes.h.html#PetscDevice">include/petscdevicetypes.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscdevicetypes.h)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
