PetscDeviceContextMarkIntentFromID#
Indicate a PetscDeviceContexts access intent to the auto-dependency system
Synopsis#
#include <petscdevice.h>
PetscErrorCode PetscDeviceContextMarkIntentFromID(PetscDeviceContext dctx, PetscObjectId id, PetscMemoryAccessMode mode, const char name[])
Not Collective
Input Parameters#
dctx - The
PetscDeviceContextid - The
PetscObjectIdto markmode - The desired access intent
name - The object name (for debug purposes, ignored in optimized builds)
Notes#
This routine formally informs the dependency system that dctx will access the object
represented by id with mode and adds dctx to id’s list of dependencies (termed
“leaves”).
If the existing set of leaves have an incompatible PetscMemoryAccessMode to mode, dctx
will be serialized against them.
See Also#
PetscDeviceContextWaitForContext(), PetscDeviceContextSynchronize(),
PetscObjectGetId(), PetscMemoryAccessMode
Level#
intermediate
Location#
src/sys/objects/device/interface/mark_dcontext.cxx
Index of all Device routines
Table of Contents for all manual pages
Index of all manual pages