:orphan:
# PetscDeviceFinalizePackage
This function cleans up all components of the `PetscDevice` package. It is called from `PetscFinalize()`. 
## Synopsis
```
#include <petscdevice.h> 
PetscErrorCode PetscDeviceFinalizePackage(void)
```

## Developer Note
This function is automatically registered to be called during `PetscFinalize()` by
`PetscDeviceInitializePackage()` so there should be no need to call it yourself.




## See Also
 `PetscFinalize()`, `PetscDeviceInitializePackage()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/device/util/devicereg.c.html#PetscDeviceFinalizePackage">src/sys/objects/device/util/devicereg.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/device/util/devicereg.c)


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