diff --git a/include/cute/container/tuple.hpp b/include/cute/container/tuple.hpp index e62cfe16..187b7e41 100644 --- a/include/cute/container/tuple.hpp +++ b/include/cute/container/tuple.hpp @@ -151,6 +151,8 @@ getv(ESO const& s) } else { return getv(s.rest_); } + + CUTE_GCC_UNREACHABLE; } template @@ -164,6 +166,8 @@ getv(ESO& s) } else { return getv(s.rest_); } + + CUTE_GCC_UNREACHABLE; } template @@ -177,6 +181,8 @@ getv(ESO&& s) } else { return getv(static_cast&&>(s.rest_)); } + + CUTE_GCC_UNREACHABLE; } template const& layout) } else { return detail::bw_coalesce(flat_shape, flat_stride, get(flat_shape), get(flat_stride)); } + + CUTE_GCC_UNREACHABLE; } // Apply coalesce_x at the terminals of trg_profile @@ -903,6 +905,8 @@ coalesce(Shape const& shape) } else { return append(init, a); // Can't coalesce, so append } + + CUTE_GCC_UNREACHABLE; }); } @@ -1105,6 +1109,8 @@ composition_impl(LShape const& lhs_shape, LStride const& lhs_stride, rest_shape / new_shape, next_stride); } + + CUTE_GCC_UNREACHABLE; }); if constexpr (tuple_size::value == 0) { @@ -1289,6 +1295,8 @@ right_inverse(Layout const& layout) } else { return init; } + + CUTE_GCC_UNREACHABLE; }); return coalesce(make_layout(result_shape, result_stride)); @@ -1344,6 +1352,8 @@ left_inverse(Layout const& layout) return make_tuple(append(result_shape, istride / size(result_shape)), append(result_stride, get(preprod_shape))); } + + CUTE_GCC_UNREACHABLE; }); return coalesce(make_layout(append(result_shape, get(lshape)), @@ -1499,7 +1509,7 @@ nullspace(Layout const& layout) { auto flat_layout = flatten(layout); - auto iseq = detail::nullspace_seq<0>(flat_layout.stride(), seq<>{}); + [[maybe_unused]] auto iseq = detail::nullspace_seq<0>(flat_layout.stride(), seq<>{}); if constexpr (iseq.size() == 0) { return Layout<_1,_0>{}; // Empty case, nothing found diff --git a/include/cute/numeric/arithmetic_tuple.hpp b/include/cute/numeric/arithmetic_tuple.hpp index 33076378..60a4ff4a 100644 --- a/include/cute/numeric/arithmetic_tuple.hpp +++ b/include/cute/numeric/arithmetic_tuple.hpp @@ -84,6 +84,8 @@ as_arithmetic_tuple(T const& t) { } else { return t; } + + CUTE_GCC_UNREACHABLE; } // diff --git a/include/cute/tensor_impl.hpp b/include/cute/tensor_impl.hpp index 9c1a0b44..0d914488 100644 --- a/include/cute/tensor_impl.hpp +++ b/include/cute/tensor_impl.hpp @@ -381,6 +381,8 @@ struct MakeTensor return Tensor(); } } + + CUTE_GCC_UNREACHABLE; } }; diff --git a/include/cutlass/functional.h b/include/cutlass/functional.h index 2d7a5739..645cddcd 100644 --- a/include/cutlass/functional.h +++ b/include/cutlass/functional.h @@ -417,6 +417,8 @@ struct maximum { else { return (lhs < rhs ? rhs : lhs); } + + CUTE_GCC_UNREACHABLE; } };