Searched refs:harray (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/vec/vec/impls/mpi/kokkos/ |
| H A D | mpikok.kokkos.cxx | 379 …eMPIKokkosWithLayoutAndArrays_Private(PetscLayout map, const PetscScalar harray[], const PetscScal… in VecCreateMPIKokkosWithLayoutAndArrays_Private() argument 386 …PetscCheck(harray == darray, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "harray and darray must be the … in VecCreateMPIKokkosWithLayoutAndArrays_Private() 388 PetscCall(VecCreateMPIWithLayoutAndArray_Private(map, harray, &w)); in VecCreateMPIKokkosWithLayoutAndArrays_Private() 391 …PetscCallCXX(w->spptr = new Vec_Kokkos(map->n, const_cast<PetscScalar *>(harray), const_cast<Petsc… in VecCreateMPIKokkosWithLayoutAndArrays_Private() 434 PetscScalar *harray; in VecCreateMPIKokkosWithArray() local 446 harray = const_cast<PetscScalar *>(darray); in VecCreateMPIKokkosWithArray() 447 …} else PetscCall(PetscMalloc1(w->map->n, &harray)); /* If device is not the same as host, allocate… in VecCreateMPIKokkosWithArray() 449 …PetscCall(VecCreate_MPI_Private(w, PETSC_FALSE /*alloc*/, 0 /*nghost*/, harray)); /* Build a seque… in VecCreateMPIKokkosWithArray() 452 …ultMemorySpace, HostMirrorMemorySpace>::value) vecmpi->array_allocated = harray; /* The host array… in VecCreateMPIKokkosWithArray() 456 veckok = new Vec_Kokkos(n, harray, const_cast<PetscScalar *>(darray)); in VecCreateMPIKokkosWithArray() [all …]
|
| /petsc/src/vec/vec/impls/seq/kokkos/ |
| H A D | veckok.kokkos.cxx | 1732 PetscScalar *harray; in VecCreateSeqKokkosWithArray() local 1747 harray = const_cast<PetscScalar *>(darray); in VecCreateSeqKokkosWithArray() 1748 PetscCall(VecCreate_Seq_Private(w, harray)); /* Build a sequential vector with harray */ in VecCreateSeqKokkosWithArray() 1751 harray = static_cast<Vec_Seq *>(w->data)->array; in VecCreateSeqKokkosWithArray() 1755 PetscCallCXX(veckok = new Vec_Kokkos{n, harray, const_cast<PetscScalar *>(darray)}); in VecCreateSeqKokkosWithArray() 1779 …eSeqKokkosWithLayoutAndArrays_Private(PetscLayout map, const PetscScalar harray[], const PetscScal… in VecCreateSeqKokkosWithLayoutAndArrays_Private() argument 1786 …PetscCheck(harray == darray, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "harray and darray must be the … in VecCreateSeqKokkosWithLayoutAndArrays_Private() 1788 PetscCall(VecCreateSeqWithLayoutAndArray_Private(map, harray, &w)); in VecCreateSeqKokkosWithLayoutAndArrays_Private() 1791 …PetscCallCXX(w->spptr = new Vec_Kokkos(map->n, const_cast<PetscScalar *>(harray), const_cast<Petsc… in VecCreateSeqKokkosWithLayoutAndArrays_Private() 1823 …Arrays_Private(MPI_Comm comm, PetscInt bs, PetscInt n, const PetscScalar harray[], const PetscScal… in VecCreateSeqKokkosWithArrays_Private() argument [all …]
|
| /petsc/src/mat/impls/hypre/ |
| H A D | mhypre.c | 774 HYPRE_BigInt *harray = hypre_ParCSRMatrixColMapOffd(parcsr); local 779 for (HYPRE_Int i = 0; i < nc; i++) garray[i] = (PetscInt)harray[i];
|