PetscDeviceContextDuplicate#

Duplicates a PetscDeviceContext object

Synopsis#

Not Collective

Input Parameter#

Output Parameter#

Notes#

This is a shorthand method for creating a PetscDeviceContext with the exact same settings as another. Note however that dctxdup does not share any of the underlying data with dctx, (including its current stream-state) they are completely separate objects.

There is no implied ordering between dctx or dctxdup.

DAG representation#

  time ->

  -> dctx - |= CALL =| - dctx ---->
                       - dctxdup ->

See Also#

PetscDeviceContextCreate(), PetscDeviceContextSetDevice(), PetscDeviceContextSetStreamType()

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