Skip to content

Commit

Permalink
Removed ifdef kokkos_enable_debug guards
Browse files Browse the repository at this point in the history
  • Loading branch information
ldh4 committed Feb 2, 2024
1 parent 8212278 commit 9b53d1e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions core/src/Kokkos_ExecPolicy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ class RangePolicy : public Impl::PolicyTraits<Properties...> {
m_end(work_end),
m_granularity(0),
m_granularity_mask(0) {
#ifdef KOKKOS_ENABLE_DEBUG
check_conversion_safety(work_begin);
check_conversion_safety(work_end);
#endif
check_bounds_validity();
set_auto_chunk_size();
}
Expand Down Expand Up @@ -175,10 +173,8 @@ class RangePolicy : public Impl::PolicyTraits<Properties...> {
m_end(work_end),
m_granularity(0),
m_granularity_mask(0) {
#ifdef KOKKOS_ENABLE_DEBUG
check_conversion_safety(work_begin);
check_conversion_safety(work_end);
#endif
check_bounds_validity();
set_auto_chunk_size();
set(args...);
Expand Down
4 changes: 0 additions & 4 deletions core/unit_test/TestRangePolicyConstructors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ TEST(TEST_CATEGORY_DEATH, range_policy_implicitly_converted_bounds) {
using UIntPolicy = Kokkos::RangePolicy<TEST_EXECSPACE, UIntIndexType>;
using IntPolicy = Kokkos::RangePolicy<TEST_EXECSPACE, IntIndexType>;

#ifndef KOKKOS_ENABLE_DEBUG
GTEST_SKIP();
#endif

std::string msg =
"Kokkos::RangePolicy bound type error: an unsafe implicit conversion is "
"performed on a bound (), which may not preserve its original value.\n";
Expand Down

0 comments on commit 9b53d1e

Please sign in to comment.