Skip to content

Commit

Permalink
Remove deprecated code 3 support for volatile join
Browse files Browse the repository at this point in the history
This wasn't working in Serial and Threads anymore anyway.
We just didn't test those guys.
  • Loading branch information
crtrott committed Aug 24, 2023
1 parent ab10d2b commit c7ea58f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions core/src/impl/Kokkos_FunctorAnalysis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,9 @@ struct FunctorAnalysis {
detected_volatile_join_no_tag<F>::value)>>
: public has_volatile_join_no_tag_function<F> {
enum : bool { value = true };
#ifndef KOKKOS_ENABLE_DEPRECATED_CODE_3
static_assert(Impl::dependent_false_v<F>,
"Reducer with a join() operator taking "
"volatile-qualified parameters is no longer supported");
#endif
};

template <class F = Functor, typename = void>
Expand All @@ -654,11 +652,9 @@ struct FunctorAnalysis {
detected_volatile_join_tag<F>::value)>>
: public has_volatile_join_tag_function<F> {
enum : bool { value = true };
#ifndef KOKKOS_ENABLE_DEPRECATED_CODE_3
static_assert(Impl::dependent_false_v<F>,
"Reducer with a join() operator taking "
"volatile-qualified parameters is no longer supported");
#endif
};

//----------------------------------------
Expand Down
7 changes: 0 additions & 7 deletions core/unit_test/TestJoinBackwardCompatibility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,6 @@ void test_join_backward_compatibility() {
ReducerWithJoinThatTakesVolatileQualifiedArgs my_red;
my_red.join(vol_result, result2);
ASSERT_EQ(vol_result.err, expected_join_volatile);

#if defined(KOKKOS_ENABLE_DEPRECATED_CODE_3)
MyJoinBackCompatValueType result3;
Kokkos::parallel_reduce(
policy, ReducerWithJoinThatTakesVolatileQualifiedArgs{}, result3);
ASSERT_EQ(result3.err, expected_join_volatile);
#endif
}

TEST(TEST_CATEGORY, join_backward_compatibility) {
Expand Down

0 comments on commit c7ea58f

Please sign in to comment.