Skip to content

Commit

Permalink
Fix CUDA build and run issues
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed May 22, 2024
1 parent 5226a0b commit 0eac440
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions include/experimental/__p0009_bits/layout_left.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ class layout_left::mapping {
* TODO: check precondition
* other.required_span_size() is a representable value of type index_type
*/
#if !defined(_MDSPAN_HAS_CUDA) && !defined(_MDSPAN_HAS_HIP)
detail::validate_strides(detail::with_rank<extents_type::rank()>{}, layout_left{}, __extents, other);
#endif
}

MDSPAN_INLINE_FUNCTION_DEFAULTED _MDSPAN_CONSTEXPR_14_DEFAULTED mapping& operator=(mapping const&) noexcept = default;
Expand Down
2 changes: 0 additions & 2 deletions include/experimental/__p0009_bits/layout_right.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ class layout_right::mapping {
* TODO: check precondition
* other.required_span_size() is a representable value of type index_type
*/
#if !defined(_MDSPAN_HAS_CUDA) && !defined(_MDSPAN_HAS_HIP)
detail::validate_strides(detail::with_rank<extents_type::rank()>{}, layout_right{}, __extents, other);
#endif
}

MDSPAN_INLINE_FUNCTION_DEFAULTED _MDSPAN_CONSTEXPR_14_DEFAULTED mapping& operator=(mapping const&) noexcept = default;
Expand Down

0 comments on commit 0eac440

Please sign in to comment.