Fix compile issue in pair_kokkos.h

This commit is contained in:
Stan Moore 2020-02-05 14:36:39 -07:00
parent 299f79c919
commit 7a09636f9a
1 changed files with 4 additions and 5 deletions

View File

@ -852,12 +852,11 @@ EV_FLOAT pair_compute_neighlist (PairStyle* fpair, typename Kokkos::Impl::enable
template<class FunctorStyle>
int GetTeamSize(FunctorStyle& functor, int inum, int reduce_flag, int team_size, int vector_length) {
int team_size_max;
if (reduce_flag) {
EV_FLOAT ev;
team_size_max = Kokkos::TeamPolicy<>(inum,Kokkos::AUTO).team_size_max(functor,ev,Kokkos::ParallelReduceTag());
} else {
if (reduce_flag)
team_size_max = Kokkos::TeamPolicy<>(inum,Kokkos::AUTO).team_size_max(functor,Kokkos::ParallelReduceTag());
else
team_size_max = Kokkos::TeamPolicy<>(inum,Kokkos::AUTO).team_size_max(functor,Kokkos::ParallelForTag());
}
#ifdef KOKKOS_ENABLE_CUDA
if(team_size*vector_length > team_size_max)