Skip to content

Commit

Permalink
Return Kokkos_View.hpp to the prev version
Browse files Browse the repository at this point in the history
  • Loading branch information
ViNN280801 authored Aug 12, 2024
1 parent bcf8266 commit 4e273a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/kokkos/core/src/Kokkos_View.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,8 @@ class View : public ViewTraits<DataType, Properties...> {

template <typename I0, typename I1>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if_t<
(Kokkos::Impl::always_true<I0, I1>::value &&
(2 == rank) && is_default_map && is_layout_right && (rank_dynamic == 0) && std::is_integral<I0>::value && std::is_integral<I1>::value),
(Kokkos::Impl::always_true<I0, I1>::value && //
(2 == rank) && is_default_map && is_layout_right && (rank_dynamic == 0)),
reference_type>
operator()(I0 i0, I1 i1) const {
check_operator_parens_valid_args(i0, i1);
Expand All @@ -955,8 +955,8 @@ class View : public ViewTraits<DataType, Properties...> {

template <typename I0, typename I1>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if_t<
(Kokkos::Impl::always_true<I0, I1>::value &&
(2 == rank) && is_default_map && is_layout_right && (rank_dynamic != 0) && std::is_integral<I0>::value && std::is_integral<I1>::value),
(Kokkos::Impl::always_true<I0, I1>::value && //
(2 == rank) && is_default_map && is_layout_right && (rank_dynamic != 0)),
reference_type>
operator()(I0 i0, I1 i1) const {
check_operator_parens_valid_args(i0, i1);
Expand Down Expand Up @@ -1088,7 +1088,7 @@ class View : public ViewTraits<DataType, Properties...> {
template <typename I0, typename I1, typename... Is>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if_t<
(Kokkos::Impl::always_true<I0, I1, Is...>::value && (2 == rank) &&
is_default_map && is_layout_right && (rank_dynamic == 0) && std::is_integral<I0>::value && std::is_integral<I1>::value),
is_default_map && is_layout_right && (rank_dynamic == 0)),
reference_type>
access(I0 i0, I1 i1, Is... extra) const {
check_access_member_function_valid_args(i0, i1, extra...);
Expand All @@ -1099,7 +1099,7 @@ class View : public ViewTraits<DataType, Properties...> {
template <typename I0, typename I1, typename... Is>
KOKKOS_FORCEINLINE_FUNCTION std::enable_if_t<
(Kokkos::Impl::always_true<I0, I1, Is...>::value && (2 == rank) &&
is_default_map && is_layout_right && (rank_dynamic != 0) && std::is_integral<I0>::value && std::is_integral<I1>::value),
is_default_map && is_layout_right && (rank_dynamic != 0)),
reference_type>
access(I0 i0, I1 i1, Is... extra) const {
check_access_member_function_valid_args(i0, i1, extra...);
Expand Down

0 comments on commit 4e273a8

Please sign in to comment.