diff --git a/cmake/std/PullRequestLinuxCuda9.2TestingSettings.cmake b/cmake/std/PullRequestLinuxCuda9.2TestingSettings.cmake index 7cf0790b3835..156d2de59e62 100644 --- a/cmake/std/PullRequestLinuxCuda9.2TestingSettings.cmake +++ b/cmake/std/PullRequestLinuxCuda9.2TestingSettings.cmake @@ -6,6 +6,8 @@ # Usage: cmake -C PullRequestLinuxCUDA9.2TestingSettings.cmake +set (CMAKE_CXX_STANDARD "14" CACHE STRING "Set C++ standard to C++14") + # Misc options typically added by CI testing mode in TriBITS # Use the below option only when submitting to the dashboard diff --git a/packages/ifpack2/test/unit_tests/Ifpack2_UnitTestBlockTriDiContainerUtil.hpp b/packages/ifpack2/test/unit_tests/Ifpack2_UnitTestBlockTriDiContainerUtil.hpp index d6166cef3611..ef7573dea2cb 100644 --- a/packages/ifpack2/test/unit_tests/Ifpack2_UnitTestBlockTriDiContainerUtil.hpp +++ b/packages/ifpack2/test/unit_tests/Ifpack2_UnitTestBlockTriDiContainerUtil.hpp @@ -242,7 +242,7 @@ struct BlockTriDiContainerTester { T_bare->initialize(); T_bare->compute(T_bare->createDefaultComputeParameters()); } - auto apply = [&] (const Tpetra_MultiVector& B, Tpetra_MultiVector& X, + auto apply = [=] (const Tpetra_MultiVector& B, Tpetra_MultiVector& X, const bool norm_based) -> int { if ( ! T_br.is_null()) { T_br->apply(B, X); diff --git a/packages/ifpack2/test/unit_tests/Ifpack2_UnitTestOverlappingRowMatrix.cpp b/packages/ifpack2/test/unit_tests/Ifpack2_UnitTestOverlappingRowMatrix.cpp index 3cfcf3f58198..0dff2c5bc87c 100644 --- a/packages/ifpack2/test/unit_tests/Ifpack2_UnitTestOverlappingRowMatrix.cpp +++ b/packages/ifpack2/test/unit_tests/Ifpack2_UnitTestOverlappingRowMatrix.cpp @@ -184,7 +184,7 @@ void localReducedMatvec(const MatrixClass & A_lcl, // NOTE: It looks like I should be able to get this data up above, but if I try to // we get internal compiler errors. Who knew that gcc tried to "gimplify"? const LO numVectors = static_cast(X_lcl.extent(1)); - Kokkos::parallel_for(Kokkos::TeamThreadRange (dev, 0, rows_per_team),[&] (const LO loop) { + Kokkos::parallel_for(Kokkos::TeamThreadRange (dev, 0, rows_per_team),[=] (const LO loop) { const LO lclRow = static_cast (dev.league_rank ()) * rows_per_team + loop; if (lclRow >= numLocalRows) { diff --git a/packages/kokkos-kernels/src/batched/KokkosBatched_SetTriangular_Internal.hpp b/packages/kokkos-kernels/src/batched/KokkosBatched_SetTriangular_Internal.hpp index cc9e95393f4b..fd74915ea938 100644 --- a/packages/kokkos-kernels/src/batched/KokkosBatched_SetTriangular_Internal.hpp +++ b/packages/kokkos-kernels/src/batched/KokkosBatched_SetTriangular_Internal.hpp @@ -50,7 +50,7 @@ namespace KokkosBatched { const int jdist = j+ dist; Kokkos::parallel_for (Kokkos::ThreadVectorRange(member, m), - [&](const int &i) { + [=](const int &i) { if (i >= jdist) A[i*as0+j*as1] = alpha; }); diff --git a/packages/kokkos-kernels/unit_test/batched/Test_Batched_TeamVectorSolveUTV.hpp b/packages/kokkos-kernels/unit_test/batched/Test_Batched_TeamVectorSolveUTV.hpp index 92990bc4be04..93b7dddc1447 100644 --- a/packages/kokkos-kernels/unit_test/batched/Test_Batched_TeamVectorSolveUTV.hpp +++ b/packages/kokkos-kernels/unit_test/batched/Test_Batched_TeamVectorSolveUTV.hpp @@ -74,7 +74,7 @@ namespace Test { } else { Kokkos::parallel_for (Kokkos::TeamVectorRange(member, m*m), - [&](const int &ij) { + [=](const int &ij) { const int i = ij/m, j = ij%m; value_type tmp(0); for (int l=0;l