Home
last modified time | relevance | path

Searched refs:array_allocated (Results 1 – 11 of 11) sorted by relevance

/petsc/src/vec/vec/impls/seq/
H A Dbvec3.c38 s->array_allocated = array; in VecCreate_Seq()
52 s->array_allocated = (PetscScalar *)aarray; in VecCreate_Seq()
61 s->array_allocated = (PetscScalar *)aarray; in VecCreate_Seq()
H A Dbvec2.c642 if (vs) PetscCall(PetscShmgetDeallocateArray((void **)&vs->array_allocated)); in VecDestroy_Seq()
707 if (m) ((Vec_Seq *)(*V)[0]->data)->array_allocated = array; in VecDuplicateVecs_Seq_GEMV()
859 s->array_allocated = NULL; in VecCreate_Seq_Private()
H A Ddvec2.c868 PetscCall(PetscFree(v->array_allocated)); in VecReplaceArray_Seq()
869 v->array_allocated = v->array = (PetscScalar *)a; in VecReplaceArray_Seq()
/petsc/include/petsc/private/
H A Dveccupmimpl.h375 if (auto &alloc = VecIMPLCast(v)->array_allocated) PetscFunctionReturn(PETSC_SUCCESS); in HostAllocateCheck_()
468 if (auto &array_allocated = vimpl->array_allocated) { in DestroyHost_() local
472 PetscCall(PetscFree(array_allocated)); in DestroyHost_()
761 auto &host_array = vimpl->array_allocated; in ReplaceArray()
1140 auto &impl_alloc = vimpl->array_allocated; in Convert_IMPL_IMPLCUPM()
H A Dvecimpl.h232 PetscScalar *array_allocated; /* if the array was allocated by PETSc this is its pointer */ \
/petsc/src/vec/vec/impls/mpi/
H A Dpbvec.c100 if (m) ((Vec_MPI *)(*V)[0]->data)->array_allocated = array; in VecDuplicateVecs_MPI_GEMV()
588 s->array_allocated = NULL; in VecCreate_MPI_Private()
592 s->array_allocated = s->array; in VecCreate_MPI_Private()
H A Dpdvec.c33 PetscCall(PetscFree(x->array_allocated)); in VecDestroy_MPI()
/petsc/src/vec/vec/impls/seq/seqviennacl/
H A Dvecviennacl.cxx178 s->array_allocated = array; in VecViennaCLAllocateCheckHost()
291 if (vs->array_allocated) PetscCall(PetscFree(vs->array_allocated)); in VecDestroy_SeqViennaCL_Private()
/petsc/src/vec/vec/impls/mpi/kokkos/
H A Dmpikok.kokkos.cxx452 …if (!std::is_same<DefaultMemorySpace, HostMirrorMemorySpace>::value) vecmpi->array_allocated = har… in VecCreateMPIKokkosWithArray()
/petsc/src/vec/vec/impls/seq/kokkos/
H A Dveckok.kokkos.cxx1347 …if (vecseq->array != vecseq->array_allocated) PetscCall(KokkosDualViewSyncHost(veckok->v_dual, Pet… in VecReplaceArray_SeqKokkos()
1363 PetscCall(PetscFree(vecseq->array_allocated)); in VecGetLocalVector_SeqKokkos()
/petsc/src/vec/vec/impls/seq/cupm/
H A Dvecseqcupm_impl.hpp360 if (auto &alloced = wseq->array_allocated) { in GetLocalVector()