Skip to content

Commit

Permalink
Try to fix the CUDA 11.0 build
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Apr 24, 2024
1 parent fafe861 commit 63eef46
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/src/Kokkos_Array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,13 @@ struct Array {
template <class U = T>
friend KOKKOS_INLINE_FUNCTION constexpr std::enable_if_t<
Impl::is_swappable<U>::value>
kokkos_swap(Array<T, N>& a,
Array<T, N>& b) noexcept(Impl::is_nothrow_swappable_v<T>) {
kokkos_swap(
#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4
Array<T, N, Proxy>& a, Array<T, N, Proxy>& b
#else
Array<T, N>& a, Array<T, N>& b
#endif
) noexcept(Impl::is_nothrow_swappable_v<T>) {
for (std::size_t i = 0; i < N; ++i) {
kokkos_swap(a[i], b[i]);
}
Expand Down

0 comments on commit 63eef46

Please sign in to comment.