#include "petscdevice.h" PetscErrorCode PetscDeviceContextSetFromOptions(MPI_Comm comm, const char prefix[], PetscDeviceContext dctx)Collective on comm, Asynchronous
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 |
dctx | - The PetscDeviceContext |
-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() |