// The global parallel_reduce does not support vector_length other than 1 at the moment
if(policy.vector_length()>1)
Impl::throw_runtime_exception("Kokkos::parallel_reduce with a TeamPolicy using a vector length of greater than 1 is not currently supported for CUDA.");
// Functor's reduce memory, team scan memory, and team shared memory depend upon team size.