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#

aso: VecBoundToCPU()

Level#

intermediate

Location#

src/vec/vec/interface/vector.c

Implementations#

VecBindToCPU_MPICUDA in src/vec/vec/impls/mpi/mpicuda/mpicuda.cu
VecBindToCPU_MPIHIP in src/vec/vec/impls/mpi/mpihip/mpihip.hip.c
VecBindToCPU_MPIViennaCL in src/vec/vec/impls/mpi/mpiviennacl/mpiviennacl.cxx
VecBindToCPU_SeqCUDA in src/vec/vec/impls/seq/seqcuda/veccuda.c
VecBindToCPU_SeqHIP in src/vec/vec/impls/seq/seqhip/vechip.hip.c
VecBindToCPU_SeqAIJViennaCL in src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx


Edit on GitLab

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