PetscGetCurrentHIPStream#

Get the HIP stream associated with PETSc’s current PetscDeviceContext

Synopsis#

#include "petscdevice.h" 
PetscErrorCode PetscGetCurrentHIPStream(hipStream_t *stream)

Not Collective; No Fortran Support

Output Parameter#

  • stream - the hipStream_t for the current context

Note#

The current device context must be of type PETSC_DEVICE_HIP. The returned stream is owned by PETSc and must not be destroyed by the caller.

See Also#

PetscDeviceContext, PetscHIPBLASGetHandle(), PetscHIPSOLVERGetHandle()

Level#

developer

Location#

src/sys/objects/device/impls/cupm/hip/cupmcontext.hip.cxx


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages