fix stride compilation warning (#1415)

This commit is contained in:
reed 2024-03-30 11:50:33 +08:00 committed by GitHub
parent 8f7d2789b8
commit 28cbacbf64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -436,6 +436,8 @@ compact_order(Shape const& shape, Order const& order)
} else { } else {
return v; return v;
} }
CUTE_GCC_UNREACHABLE;
}); });
// Replace any dynamic elements within order with large-static elements // Replace any dynamic elements within order with large-static elements
auto max_seq = make_range<max_order+1, max_order+1+rank(flat_order)>{}; auto max_seq = make_range<max_order+1, max_order+1+rank(flat_order)>{};
@ -445,6 +447,8 @@ compact_order(Shape const& shape, Order const& order)
} else { } else {
return seq_v; return seq_v;
} }
CUTE_GCC_UNREACHABLE;
}); });
auto new_order = unflatten(ref_order, order); auto new_order = unflatten(ref_order, order);