VecCreateMPICUDAWithArray#
Creates a parallel, array-style vector using CUDA, where the user provides the device array space to store the vector values.
Synopsis#
#include <petscvec.h>
PetscErrorCode VecCreateMPICUDAWithArray(MPI_Comm comm, PetscInt bs, PetscInt n, PetscInt N, const PetscScalar gpuarray[], Vec *v)
Collective
Input Parameters#
comm - the MPI communicator to use
bs - block size, same meaning as
VecSetBlockSize()n - local vector length, cannot be
PETSC_DECIDEN - global vector length (or
PETSC_DECIDEto have calculated)gpuarray - the user provided GPU array to store the vector values
Output Parameter#
v - the vector
Notes#
See VecCreateSeqCUDAWithArray() for further discussion, this routine shares identical
semantics.
See Also#
VecCreateMPICUDA(), VecCreateSeqCUDAWithArray(), VecCreateMPIWithArray(),
VecCreateSeqWithArray(), VecCreate(), VecDuplicate(), VecDuplicateVecs(), VecCreateGhost(),
VecCreateMPI(), VecCreateGhostWithArray(), VecPlaceArray()
Level#
intermediate
Location#
src/vec/vec/impls/mpi/cupm/cuda/vecmpicupm.cu
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages