PetscOffloadDevice — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscOffloadDevice

Returns `PETSC_TRUE` if a given `PetscOffloadMask` indicates that device (GPU) memory holds valid data

## Synopsis

    #include <petscdevicetypes.h>
    PetscBool PetscOffloadDevice(PetscOffloadMask m)

Not Collective; No Fortran Support

## Input Parameter

- m - the `PetscOffloadMask` value

## See Also

`PetscOffloadMask`, `PetscOffloadUnallocated()`, `PetscOffloadHost()`, `PetscOffloadBoth()`

## Level

developer

## Location

include/petscdevicetypes.h

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages