PETSc version 3.17.0
PetscDeviceContextCreate
Creates a PetscDeviceContext
Synopsis
#include "petscdevice.h"
PetscErrorCode PetscDeviceContextCreate(PetscDeviceContext *dctx)
Not Collective, Asynchronous
Output Paramemter
Notes
Unlike almost every other PETSc class it is advised that most users use
PetscDeviceContextDuplicate() rather than this routine to create new contexts. Contexts
of different types are incompatible with one another; using
PetscDeviceContextDuplicate() ensures compatible types.
See Also
PetscDeviceContextDuplicate(), PetscDeviceContextSetDevice(),
PetscDeviceContextSetStreamType(), PetscDeviceContextSetUp(),
PetscDeviceContextSetFromOptions(), PetscDeviceContextDestroy()
Level
beginner
Location
src/sys/objects/device/interface/dcontext.cxx
Implementations
PetscDeviceContextCreate_CUDA in src/sys/objects/device/impls/cupm/cuda/cupmcontext.cu
PetscDeviceContextCreate_SYCL in src/sys/objects/device/impls/sycl/syclcontext.sycl.cxx
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages