diff --git a/src/batched/KokkosBatched_SetTriangular_Internal.hpp b/src/batched/KokkosBatched_SetTriangular_Internal.hpp index cc9e95393f..fd74915ea9 100644 --- a/src/batched/KokkosBatched_SetTriangular_Internal.hpp +++ b/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/unit_test/batched/Test_Batched_TeamVectorSolveUTV.hpp b/unit_test/batched/Test_Batched_TeamVectorSolveUTV.hpp index 92990bc4be..93b7dddc14 100644 --- a/unit_test/batched/Test_Batched_TeamVectorSolveUTV.hpp +++ b/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