Skip to content

Commit

Permalink
Fix fix for #1905 for Serial backend
Browse files Browse the repository at this point in the history
My fix for OpenMP broke it for Serial ...
  • Loading branch information
crtrott committed Apr 8, 2019
1 parent 3643229 commit 5f4f330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/impl/Kokkos_HostThreadTeam.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,8 @@ class HostThreadTeamMember {
// Copy from root member's buffer:
reducer.reference() = *((value_type*) m_data.team_reduce());
}
} else {
reducer.reference() = contribution;
}
}
#else
Expand Down
5 changes: 5 additions & 0 deletions core/unit_test/standalone/UnitTestMainInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
#ifdef KOKKOS_ENABLE_HPX
#include <hpx/TestHPX_Category.hpp>
#endif
#ifndef TEST_EXECSPACE
#ifdef KOKKOS_ENABLE_SERIAL
#include <serial/TestSerial_Category.hpp>
#endif
#endif
#include <TestTeamVector.hpp>

int main( int argc, char *argv[] ) {
Expand Down

0 comments on commit 5f4f330

Please sign in to comment.