PETSc version 3.17.0
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_stream_type - type of stream to create inside the PetscDeviceContext - PetscDeviceContextSetStreamType()
-device_context_device_type - the type of PetscDevice to attach by default - PetscDeviceType

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