[Trilinos-Users] Kokkos parallel_reduce Lambda Compatibility

Bookey, Zachary A ZABOOKEY at CSBSJU.EDU
Tue Nov 4 14:04:08 MST 2014


I'm working on a project that involves using Kokkos and am converting some previously used functors to lambdas. However I'm running into some issues when trying to use lambdas with the parallel_reduce function. I'm using the Intel icpc compiler version 13.1.3 with the flag --std=c++11 and my version of Trilinos is 11.8. The output error message is as follows: 

ComputeDotProduct_ref.cpp(48): error: no instance of overloaded function "Kokkos::parallel_reduce" matches the argument list
            argument types are: (const local_int_t, lambda [](local_int_t, double &)->void, double)
                 Kokkos::parallel_reduce(n, [xv](local_int_t i, double &final){
                 ^

ComputeDotProduct_ref.cpp(53): error: no instance of overloaded function "Kokkos::parallel_reduce" matches the argument list
            argument types are: (const local_int_t, lambda [](local_int_t, double &)->void, double)
                 Kokkos::parallel_reduce(n, [xv, yv](local_int_t i, double &final){

Thanks,
Zach B


More information about the Trilinos-Users mailing list