# PetscDeviceContext
Container to manage stream dependencies and the various solver handles for asynchronous device compute. 
## Synopsis
```
#include <petscdevicetypes.h> 
typedef struct _p_PetscDeviceContext *PetscDeviceContext;
```



## See Also
 `PetscDevice`, `PetscDeviceContextCreate()`, `PetscDeviceContextSetDevice()`,
`PetscDeviceContextDestroy()`, `PetscDeviceContextFork()`, `PetscDeviceContextJoin()`

## Level
beginner

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petsc/private/deviceimpl.h.html#_p_PetscDeviceContext">_p_PetscDeviceContext in include/petsc/private/deviceimpl.h</A><BR>


---
[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)  
