PETSc version 3.16.4
Fix/Edit manual page

PetscDeviceContextSetFromOptions

Configure a PetscDeviceContext from the options database

Synopsis

#include "petscdevice.h" 
PetscErrorCode PetscDeviceContextSetFromOptions(MPI_Comm comm, const char prefix[], PetscDeviceContext dctx)
Collective on comm, Asynchronous

Input Parameters

comm - MPI communicator on which to query the options database
prefix - prefix to prepend to all options database queries, NULL if not needed
dctx - The PetscDeviceContext to configure

Output Parameter

dctx - The PetscDeviceContext

Options Database

-device_context_device_kind - the kind of PetscDevice to attach by default - PetscDeviceKind
-device_context_stream_type - type of stream to create inside the PetscDeviceContext - PetscDeviceContextSetStreamType()

See Also

PetscDeviceContextSetStreamType(), PetscDeviceContextSetDevice()

Level

beginner

Location

src/sys/objects/device/interface/dcontext.cxx
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages