Skip to content

Commit

Permalink
add guards
Browse files Browse the repository at this point in the history
  • Loading branch information
fnrizzi committed Oct 16, 2023
1 parent 0c0cafa commit 7b86b80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions algorithms/src/std_algorithms/impl/Kokkos_CopyIf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ KOKKOS_FUNCTION OutputIterator copy_if_team_impl(
// no barrier needed because of the scan accumulating into count
return d_first + count;
}

#if defined KOKKOS_COMPILER_INTEL || \
(defined(KOKKOS_COMPILER_NVCC) && KOKKOS_COMPILER_NVCC >= 1130)
__builtin_unreachable();
#endif
}

} // namespace Impl
Expand Down
5 changes: 5 additions & 0 deletions algorithms/src/std_algorithms/impl/Kokkos_UniqueCopy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ KOKKOS_FUNCTION OutputIterator unique_copy_team_impl(
return Impl::copy_team_impl(teamHandle, first + scan_size, last,
d_first + count);
}

#if defined KOKKOS_COMPILER_INTEL || \
(defined(KOKKOS_COMPILER_NVCC) && KOKKOS_COMPILER_NVCC >= 1130)
__builtin_unreachable();
#endif
}
}

Expand Down

0 comments on commit 7b86b80

Please sign in to comment.