From: Daniel Arndt Date: Thu, 26 Jan 2023 04:12:36 +0000 (-0500) Subject: Fix a couple tests for older Kokkos versions used by Trilinos X-Git-Tag: v9.5.0-rc1~605^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a3ba5d9655f931ce40319419b555854b1a8a0dd;p=dealii.git Fix a couple tests for older Kokkos versions used by Trilinos --- 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.