# PetscDeviceInitialized
Determines whether `PetscDevice` is initialized for a particular `PetscDeviceType` 
## Synopsis
```
#include <petscdevice.h> 
PetscBool PetscDeviceInitialized(PetscDeviceType type)
```
Not Collective


## Input Parameter

- ***type -*** The `PetscDeviceType` to check



## Notes
Returns `PETSC_TRUE` if `type` is initialized, `PETSC_FALSE` otherwise.

If one has not configured PETSc for a particular `PetscDeviceType` then this routine will
return `PETSC_FALSE` for that `PetscDeviceType`.




## See Also
 `PetscDevice`, `PetscDeviceInitType`, `PetscDeviceInitialize()`,
`PetscDeviceCreate()`, `PetscDeviceDestroy()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/device/interface/device.cxx.html#PetscDeviceInitialized">src/sys/objects/device/interface/device.cxx</A>


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


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