From 98a12b01b51b250d4f510878604d4047496d845d Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko Date: Wed, 3 Jul 2024 17:21:18 -0400 Subject: [PATCH] Fix CUDA errors in submdspan about int to size_t narrowing (#350) Co-authored-by: Christian Trott Co-authored-by: Daniel Arndt --- include/experimental/__p2630_bits/submdspan_mapping.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/experimental/__p2630_bits/submdspan_mapping.hpp b/include/experimental/__p2630_bits/submdspan_mapping.hpp index 94763450..e1390fde 100644 --- a/include/experimental/__p2630_bits/submdspan_mapping.hpp +++ b/include/experimental/__p2630_bits/submdspan_mapping.hpp @@ -131,7 +131,7 @@ struct deduce_layout_left_submapping< IndexType, SubRank, std::index_sequence, SliceSpecifiers...> { using count_range = index_sequence_scan_impl< - 0, (is_index_slice_v ? 0 : 1)...>; + 0u, (is_index_slice_v ? 0u : 1u)...>; constexpr static int gap_len = (((Idx > 0 && count_range::get(Idx) == 1 && @@ -361,7 +361,7 @@ struct deduce_layout_right_submapping< static constexpr size_t Rank = sizeof...(Idx); using count_range = index_sequence_scan_impl< - 0, (std::is_convertible_v ? 0 : 1)...>; + 0u, (std::is_convertible_v ? 0u : 1u)...>; //__static_partial_sums...>; constexpr static int gap_len =