diff --git a/packages/zoltan2/core/src/input/Zoltan2_BasicKokkosIdentifierAdapter.hpp b/packages/zoltan2/core/src/input/Zoltan2_BasicKokkosIdentifierAdapter.hpp index dd3b2aaf6c4a..875233516bba 100644 --- a/packages/zoltan2/core/src/input/Zoltan2_BasicKokkosIdentifierAdapter.hpp +++ b/packages/zoltan2/core/src/input/Zoltan2_BasicKokkosIdentifierAdapter.hpp @@ -122,12 +122,12 @@ BasicKokkosIdentifierAdapter::BasicKokkosIdentifierAdapter( Kokkos::View &weights) { idsView_ = Kokkos::DualView("idsView_", ids.extent(0)); - Kokkos::deep_copy(idsView_.h_view, ids); + Kokkos::deep_copy(idsView_.view_host(), ids); weightsView_ = Kokkos::DualView("weightsView_", weights.extent(0), weights.extent(1)); - Kokkos::deep_copy(weightsView_.h_view, weights); + Kokkos::deep_copy(weightsView_.view_host(), weights); weightsView_.modify_host(); weightsView_.sync_host(); diff --git a/packages/zoltan2/sphynx/src/Zoltan2_Sphynx.hpp b/packages/zoltan2/sphynx/src/Zoltan2_Sphynx.hpp index 823b592a028d..59a4c4cb2671 100644 --- a/packages/zoltan2/sphynx/src/Zoltan2_Sphynx.hpp +++ b/packages/zoltan2/sphynx/src/Zoltan2_Sphynx.hpp @@ -441,7 +441,7 @@ namespace Zoltan2 { // D^{-1/2} dual_view_t dv ("MV::DualView", numRows, 1); - auto deginvsqrt = dv.d_view; + auto deginvsqrt = dv.view_device(); // Get the diagonal offsets offset_view_t diagOffsets(Kokkos::view_alloc("Diag Offsets", Kokkos::WithoutInitializing), numRows); diff --git a/packages/zoltan2/test/core/partition/mj_backwardcompat.cpp b/packages/zoltan2/test/core/partition/mj_backwardcompat.cpp index 7f54e5824eec..e71e8e571ff1 100644 --- a/packages/zoltan2/test/core/partition/mj_backwardcompat.cpp +++ b/packages/zoltan2/test/core/partition/mj_backwardcompat.cpp @@ -134,7 +134,7 @@ class KokkosVectorAdapter : public Zoltan2::VectorAdapter kokkos_gids = view_ids_t( Kokkos::ViewAllocateWithoutInitializing("gids"), nids); - auto host_gids = kokkos_gids.h_view; + auto host_gids = kokkos_gids.view_host(); for(size_t n = 0; n < nids; ++n) { host_gids(n) = gids_[n]; } @@ -150,7 +150,7 @@ class KokkosVectorAdapter : public Zoltan2::VectorAdapter typedef Kokkos::DualView view_weights_t; kokkos_weights = view_weights_t( Kokkos::ViewAllocateWithoutInitializing("weights"), nids, 0); - auto host_kokkos_weights = kokkos_weights.h_view; + auto host_kokkos_weights = kokkos_weights.view_host(); for(size_t n = 0; n < nids; ++n) { host_kokkos_weights(n,0) = weights_[n]; } @@ -165,7 +165,7 @@ class KokkosVectorAdapter : public Zoltan2::VectorAdapter typedef Kokkos::DualView kokkos_coords_t; kokkos_coords = kokkos_coords_t( Kokkos::ViewAllocateWithoutInitializing("coords"), nids, dim); - auto host_kokkos_coords = kokkos_coords.h_view; + auto host_kokkos_coords = kokkos_coords.view_host(); for(size_t n = 0; n < nids; ++n) { for(int idx = 0; idx < dim; ++idx) { @@ -190,7 +190,7 @@ class KokkosVectorAdapter : public Zoltan2::VectorAdapter ids = kokkos_gids.template view(); } - int getNumWeightsPerID() const { return (kokkos_weights.h_view.size() != 0); } + int getNumWeightsPerID() const { return (kokkos_weights.view_host().size() != 0); } void getWeightsView(const scalar_t *&wgt, int &stride, int idx = 0) const override