diff --git a/packages/compadre/src/Compadre_LinearAlgebra.cpp b/packages/compadre/src/Compadre_LinearAlgebra.cpp index 1616f665329f..7fa648cee9ad 100644 --- a/packages/compadre/src/Compadre_LinearAlgebra.cpp +++ b/packages/compadre/src/Compadre_LinearAlgebra.cpp @@ -101,6 +101,9 @@ namespace GMLS_LinearAlgebra { bool do_print = false; if (do_print) { Kokkos::single(Kokkos::PerTeam(member), [&] () { +#if KOKKOS_VERSION >= 40200 + using Kokkos::printf; +#endif //print a printf("a=zeros(%lu,%lu);\n", aa.extent(0), aa.extent(1)); for (size_t i=0; i= 40200 + using Kokkos::printf; +#endif printf("matrix_rank: %d\n", matrix_rank); //print u printf("u=zeros(%lu,%lu);\n", uu.extent(0), uu.extent(1)); diff --git a/packages/compadre/src/tpl/KokkosBatched_SolveUTV_TeamVector_Internal_Compadre.hpp b/packages/compadre/src/tpl/KokkosBatched_SolveUTV_TeamVector_Internal_Compadre.hpp index 21aa54f84737..7d4925695c8e 100644 --- a/packages/compadre/src/tpl/KokkosBatched_SolveUTV_TeamVector_Internal_Compadre.hpp +++ b/packages/compadre/src/tpl/KokkosBatched_SolveUTV_TeamVector_Internal_Compadre.hpp @@ -54,7 +54,10 @@ namespace KokkosBatched { bool do_print = false; if (do_print) { Kokkos::single(Kokkos::PerTeam(member), [&] () { - printf("size is: %d %d %d %d\n", matrix_rank, m, n, nrhs); +#if KOKKOS_VERSION >= 40200 + using Kokkos::printf; +#endif + printf("size is: %d %d %d %d\n", matrix_rank, m, n, nrhs); printf("U, us1, us0: %d %d\n", us1, us0); printf("T, ts0, ts1: %d %d\n", ts0, ts1); printf("B, bs0, bs1: %d %d\n", bs0, bs1); @@ -99,6 +102,9 @@ namespace KokkosBatched { if (do_print) { Kokkos::single(Kokkos::PerTeam(member), [&] () { +#if KOKKOS_VERSION >= 40200 + using Kokkos::printf; +#endif printf("W=zeros(%d,%d);\n", m, nrhs); for (int i=0; i= 40200 + using Kokkos::printf; +#endif printf("W=zeros(%d,%d);\n", m, nrhs); for (int i=0; i= 40200 + using Kokkos::printf; +#endif printf("X=zeros(%d,%d);\n", n, nrhs); for (int i=0; i= 40200 + using Kokkos::printf; +#endif printf("m=zeros(%d,%d);\n", matrix_rank, nrhs); for (int i=0; i= 40200 + using Kokkos::printf; +#endif printf("T=zeros(%d,%d);\n", m, matrix_rank); for (int i=0; i= 40200 + using Kokkos:::printf; +#endif printf("x=zeros(%d,%d);\n", n, nrhs); for (int i=0; i= 40200 + using Kokkos::printf; +#endif printf("X=zeros(%d,%d);\n", n, nrhs); for (int i=0; i