Skip to main content
Ctrl+K
PETSc v3.26.1-554-gc8d5ad6b3782 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PetscDeviceC...

PetscDeviceContextSetStreamType#

Set the implementation type of the underlying stream for a PetscDeviceContext

Synopsis#

#include <petscdevice.h> 
PetscErrorCode PetscDeviceContextSetStreamType(PetscDeviceContext dctx, PetscStreamType type)

Not Collective

Input Parameters#

  • dctx - The PetscDeviceContext

  • type - The PetscStreamType

Note#

See PetscStreamType in include/petscdevicetypes.h for more information on the available types and their interactions. If the PetscDeviceContext was previously set up and stream type was changed, you must call PetscDeviceContextSetUp() again after this routine.

See Also#

PetscStreamType, PetscDeviceContextGetStreamType(), PetscDeviceContextCreate(), PetscDeviceContextSetUp(), PetscDeviceContextSetFromOptions()

Level#

intermediate

Location#

src/sys/objects/device/interface/dcontext.cxx

Examples#

src/sys/objects/device/tests/ex10.c
src/sys/objects/device/tests/ex11.cxx
src/sys/objects/device/tests/ex13.cxx
src/sys/objects/device/tests/ex1k.kokkos.cxx
src/sys/objects/device/tests/ex7.c
src/sys/objects/device/tests/ex9.c
src/dm/tests/ex56.c
src/ksp/ksp/utils/lmvm/tests/ex4.c
src/ksp/pc/tests/ex17.c
src/mat/tests/ex254.c


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

On this page
  • Synopsis
  • Input Parameters
  • Note
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-11-28T03:39:59-0600 (v3.26.1-554-gc8d5ad6b3782).