:orphan: # PetscDeviceFinalizePackage This function cleans up all components of the `PetscDevice` package. It is called from `PetscFinalize()`. ## Synopsis ``` #include 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 src/sys/objects/device/util/devicereg.c --- [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)