Kokkos/unit tests build failure cuda (The closure type for a lambda)
Created by: jjellio
I am getting the following error when trying to build with GCC 4.9.2 / CUDA 7.5.7 on an IBM system.
I've tried bother master and develop and both yield the same problem.
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a global function template instantiation, unless the lambda is defined within a device or global function
jjellio :~/build/trilinos-gnu-opt$ make
[ 0%] Built target last_lib
[ 0%] Built target gtest
[ 1%] Built target kokkoscore
[ 1%] Built target kokkos_gtest
[ 1%] Building CXX object packages/kokkos/core/unit_test/CMakeFiles/KokkosCore_UnitTest_Cuda.dir/TestCuda.cpp.o
/home/jjellio/src/Trilinos/packages/kokkos/core/src/impl/Kokkos_Atomic_Decrement.hpp(61): warning: integer conversion resulted in a change of sign
/home/jjellio/src/Trilinos/packages/kokkos/core/src/impl/Kokkos_Atomic_Decrement.hpp(61): warning: integer conversion resulted in a change of sign
[ 1%] Building CXX object packages/kokkos/core/unit_test/CMakeFiles/KokkosCore_UnitTest_Cuda.dir/TestCuda_a.cpp.o
/home/jjellio/src/Trilinos/packages/kokkos/core/src/impl/Kokkos_Atomic_Decrement.hpp(61): warning: integer conversion resulted in a change of sign
/home/jjellio/src/Trilinos/packages/kokkos/core/src/impl/Kokkos_Atomic_Decrement.hpp(61): warning: integer conversion resulted in a change of sign
[ 1%] Building CXX object packages/kokkos/core/unit_test/CMakeFiles/KokkosCore_UnitTest_Cuda.dir/TestCuda_b.cpp.o
/home/jjellio/src/Trilinos/packages/kokkos/core/src/impl/Kokkos_Atomic_Decrement.hpp(61): warning: integer conversion resulted in a change of sign
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(175): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(175): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaUVMSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaUVMSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(176): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaUVMSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaUVMSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(176): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaHostPinnedSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaHostPinnedSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(177): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Static>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaHostPinnedSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaHostPinnedSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(177): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(178): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(178): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaUVMSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaUVMSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(179): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaUVMSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaUVMSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaUVMSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(179): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaHostPinnedSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaHostPinnedSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(180): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, HostViewType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1129): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, const ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Schedule<Kokkos::Dynamic>, Kokkos::Cuda>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=Kokkos::Experimental::View<int, Kokkos::CudaHostPinnedSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(561): here
instantiation of "void Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::run() [with MemorySpace=Kokkos::CudaHostPinnedSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(507): here
instantiation of "Test::TestLambdaSharedTeam<MemorySpace, ExecSpace, ScheduleType>::TestLambdaSharedTeam() [with MemorySpace=Kokkos::CudaHostPinnedSpace, ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(180): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(647): here
instantiation of "Kokkos::Impl::ParallelFor<FunctorType, Kokkos::TeamPolicy<Properties...>, Kokkos::Cuda>::ParallelFor(const FunctorType &, const Kokkos::Impl::ParallelFor<FunctorType, Kokkos::TeamPolicy<Properties...>, Kokkos::Cuda>::Policy &) [with FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Properties=<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel.hpp(186): here
instantiation of "void Kokkos::parallel_for(const ExecPolicy &, const FunctorType &, const std::string &, Kokkos::Impl::enable_if<<expression>, void>::type *) [with ExecPolicy=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &)->void]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(852): here
instantiation of "void Test::test_team_mulit_level_scratch_test_lambda<ExecSpace,ScheduleType>() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(881): here
instantiation of "void <unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::run() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(876): here
instantiation of "<unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::TestMultiLevelScratchTeam() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(189): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(647): here
instantiation of "Kokkos::Impl::ParallelFor<FunctorType, Kokkos::TeamPolicy<Properties...>, Kokkos::Cuda>::ParallelFor(const FunctorType &, const Kokkos::Impl::ParallelFor<FunctorType, Kokkos::TeamPolicy<Properties...>, Kokkos::Cuda>::Policy &) [with FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Properties=<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel.hpp(186): here
instantiation of "void Kokkos::parallel_for(const ExecPolicy &, const FunctorType &, const std::string &, Kokkos::Impl::enable_if<<expression>, void>::type *) [with ExecPolicy=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &)->void]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(852): here
instantiation of "void Test::test_team_mulit_level_scratch_test_lambda<ExecSpace,ScheduleType>() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(881): here
instantiation of "void <unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::run() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(876): here
instantiation of "<unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::TestMultiLevelScratchTeam() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(189): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, HostViewType=Kokkos::Experimental::View<int, Kokkos::HostSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=int]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1084): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=int]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(862): here
instantiation of "void Test::test_team_mulit_level_scratch_test_lambda<ExecSpace,ScheduleType>() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(881): here
instantiation of "void <unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::run() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(876): here
instantiation of "<unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::TestMultiLevelScratchTeam() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(189): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, HostViewType=Kokkos::Experimental::View<int, Kokkos::HostSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=int]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1084): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Static>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=int]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(862): here
instantiation of "void Test::test_team_mulit_level_scratch_test_lambda<ExecSpace,ScheduleType>() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(881): here
instantiation of "void <unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::run() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(876): here
instantiation of "<unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::TestMultiLevelScratchTeam() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Static>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(189): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(647): here
instantiation of "Kokkos::Impl::ParallelFor<FunctorType, Kokkos::TeamPolicy<Properties...>, Kokkos::Cuda>::ParallelFor(const FunctorType &, const Kokkos::Impl::ParallelFor<FunctorType, Kokkos::TeamPolicy<Properties...>, Kokkos::Cuda>::Policy &) [with FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Properties=<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel.hpp(186): here
instantiation of "void Kokkos::parallel_for(const ExecPolicy &, const FunctorType &, const std::string &, Kokkos::Impl::enable_if<<expression>, void>::type *) [with ExecPolicy=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &)->void]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(852): here
instantiation of "void Test::test_team_mulit_level_scratch_test_lambda<ExecSpace,ScheduleType>() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(881): here
instantiation of "void <unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::run() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(876): here
instantiation of "<unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::TestMultiLevelScratchTeam() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(190): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelFor<lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(647): here
instantiation of "Kokkos::Impl::ParallelFor<FunctorType, Kokkos::TeamPolicy<Properties...>, Kokkos::Cuda>::ParallelFor(const FunctorType &, const Kokkos::Impl::ParallelFor<FunctorType, Kokkos::TeamPolicy<Properties...>, Kokkos::Cuda>::Policy &) [with FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &)->void, Properties=<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel.hpp(186): here
instantiation of "void Kokkos::parallel_for(const ExecPolicy &, const FunctorType &, const std::string &, Kokkos::Impl::enable_if<<expression>, void>::type *) [with ExecPolicy=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &)->void]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(852): here
instantiation of "void Test::test_team_mulit_level_scratch_test_lambda<ExecSpace,ScheduleType>() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(881): here
instantiation of "void <unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::run() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(876): here
instantiation of "<unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::TestMultiLevelScratchTeam() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(190): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: The closure type for a lambda ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation, unless the lambda is defined within a __device__ or __global__ function
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, HostViewType=Kokkos::Experimental::View<int, Kokkos::HostSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=int]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1084): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=int]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(862): here
instantiation of "void Test::test_team_mulit_level_scratch_test_lambda<ExecSpace,ScheduleType>() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(881): here
instantiation of "void <unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::run() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(876): here
instantiation of "<unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::TestMultiLevelScratchTeam() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(190): here
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Internal.hpp(183): error: A type defined inside a __host__ function ("lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void") cannot be used in the template argument type of a __global__ function template instantiation
detected during:
instantiation of "Kokkos::Impl::cuda_parallel_launch_local_memory" based on template argument <Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::InvalidType, Kokkos::Cuda>>
(187): here
instantiation of "int Kokkos::Impl::CudaGetOptBlockSize<DriverType, false>::get_block_size(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::InvalidType, Kokkos::Cuda>]"
(135): here
instantiation of "int Kokkos::Impl::cuda_get_opt_block_size<DriverType,Large>(const DriverType::functor_type &, size_t, size_t, size_t) [with DriverType=Kokkos::Impl::ParallelReduce<Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, int, void>, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, Kokkos::InvalidType, Kokkos::Cuda>, Large=false]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(1116): here
instantiation of "Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::ParallelReduce(const FunctorType &, const Kokkos::Impl::ParallelReduce<FunctorType, Kokkos::TeamPolicy<Properties...>, ReducerType, Kokkos::Cuda>::Policy &, const HostViewType &, std::enable_if<Kokkos::Experimental::is_view<HostViewType>::value, void *>::type) [with FunctorType=Kokkos::Impl::CudaFunctorAdapter<lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, int, void>, ReducerType=Kokkos::InvalidType, Properties=<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, HostViewType=Kokkos::Experimental::View<int, Kokkos::HostSpace, Kokkos::MemoryUnmanaged>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(996): here
instantiation of "void Kokkos::Impl::ParallelReduceAdaptor<PolicyType, FunctorType, ReturnType>::execute(const std::string &, const PolicyType &, const FunctorType &, ReturnType &) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=int]"
/home/jjellio/src/Trilinos/packages/kokkos/core/src/Kokkos_Parallel_Reduce.hpp(1084): here
instantiation of "void Kokkos::parallel_reduce(const PolicyType &, const FunctorType &, ReturnType &, Kokkos::Impl::enable_if<Kokkos::Impl::is_execution_policy<PolicyType>::value, void>::type *) [with PolicyType=Kokkos::TeamPolicy<Kokkos::Cuda, Kokkos::Schedule<Kokkos::Dynamic>>, FunctorType=lambda [](const Kokkos::Impl::CudaTeamMember &, int &)->void, ReturnType=int]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(862): here
instantiation of "void Test::test_team_mulit_level_scratch_test_lambda<ExecSpace,ScheduleType>() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(881): here
instantiation of "void <unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::run() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestTeam.hpp(876): here
instantiation of "<unnamed>::TestMultiLevelScratchTeam<ExecSpace, ScheduleType>::TestMultiLevelScratchTeam() [with ExecSpace=Kokkos::Cuda, ScheduleType=Kokkos::Schedule<Kokkos::Dynamic>]"
/home/jjellio/src/Trilinos/packages/kokkos/core/unit_test/TestCuda_b.cpp(190): here
20 errors detected in the compilation of "/tmp/tmpxft_000011e7_00000000-7_TestCuda_b.cpp1.ii".
make[2]: *** [packages/kokkos/core/unit_test/CMakeFiles/KokkosCore_UnitTest_Cuda.dir/TestCuda_b.cpp.o] Error 2
make[1]: *** [packages/kokkos/core/unit_test/CMakeFiles/KokkosCore_UnitTest_Cuda.dir/all] Error 2
make: *** [all] Error 2
@crtrott @kokkos @nmhamster @mhoemmen