diff --git a/tests/ops/ops_kokkos_level2.cc b/tests/ops/ops_kokkos_level2.cc index e23cd6f..906b797 100644 --- a/tests/ops/ops_kokkos_level2.cc +++ b/tests/ops/ops_kokkos_level2.cc @@ -73,21 +73,18 @@ struct kokkosFixture template static void set_input(Kokkos::View x, const std::vector &values) { assert(x.extent(0) == values.size()); - auto x_h = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace(), x); for (size_t i = 0; i < x.extent(0); ++i) { - x_h(i) = values[i]; + x(i) = values[i]; } - Kokkos::deep_copy(x, x_h); } // populates input matrix with unique integer values template static void set_matrix(Kokkos::View mtx) { - auto mtx_h = mtx; size_t ex0 = mtx.extent(0), ex1 = mtx.extent(1); for (size_t i = 0; i < ex0; ++i) { for (size_t j = 0; j < ex1; ++j) { - mtx_h(i, j) = (double)(i * ex1 + j + 1.0); + mtx(i, j) = (double)(i * ex1 + j + 1.0); } } }