Skip to main content
Ctrl+K
PETSc v3.24.5-547-g02fac8099134 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
  • VecBindToCPU

VecBindToCPU#

marks a vector to temporarily stay on the CPU and perform computations on the CPU

Synopsis#

#include "petscvec.h"   
PetscErrorCode VecBindToCPU(Vec v, PetscBool flg)

Logically collective

Input Parameters#

  • v - the vector

  • flg - bind to the CPU if value of PETSC_TRUE

See Also#

Vectors and Parallel Data, Vec, VecBoundToCPU()

Level#

intermediate

Location#

src/vec/vec/interface/vector.c

Implementations#

VecBindToCPU_MPIViennaCL() in src/vec/vec/impls/mpi/mpiviennacl/mpiviennacl.cxx
VecBindToCPU_SeqKokkos() in src/vec/vec/impls/seq/kokkos/veckok.kokkos.cxx
VecBindToCPU_SeqAIJViennaCL() in src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx


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

On this page
  • Synopsis
  • Input Parameters
  • See Also
  • Level
  • Location
  • Implementations
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-03-09T03:47:55-0500 (v3.24.5-547-g02fac8099134).