From 3a3ba5d9655f931ce40319419b555854b1a8a0dd Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 25 Jan 2023 23:12:36 -0500 Subject: [PATCH] Fix a couple tests for older Kokkos versions used by Trilinos --- tests/base/kokkos_tensor_01.cc | 3 +-- tests/lac/parallel_vector_21.cc | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/base/kokkos_tensor_01.cc b/tests/base/kokkos_tensor_01.cc index ac98facd07..c600edd8fe 100644 --- a/tests/base/kokkos_tensor_01.cc +++ b/tests/base/kokkos_tensor_01.cc @@ -56,8 +56,7 @@ test_gpu() // Launch the kernels. Kokkos::parallel_for( - Kokkos::MDRangePolicy>(exec, - {{0, 0}}, + Kokkos::MDRangePolicy>({{0, 0}}, {{dim, dim}}), KOKKOS_LAMBDA(int i, int j) { t_dev()[i][j] = j + i * dim + 1.; }); Kokkos::parallel_for( diff --git a/tests/lac/parallel_vector_21.cc b/tests/lac/parallel_vector_21.cc index ddedd449b9..29be8db48e 100644 --- a/tests/lac/parallel_vector_21.cc +++ b/tests/lac/parallel_vector_21.cc @@ -54,10 +54,6 @@ test() v2.get_values(), v2.local_size()); Kokkos::deep_copy(v2_view, 1.); - Kokkos::parallel_for( - v2.local_size(), KOKKOS_LAMBDA(int i) { - KOKKOS_IMPL_DO_NOT_USE_PRINTF("%d: %f\n", i, v2_view(i)); - }); // add entries to ghost values // Because of limitation in import, the IndexSet of the ReadWriteVector needs // to have the local elements. -- 2.39.5