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

View File

@@ -436,6 +436,8 @@ compact_order(Shape const& shape, Order const& order)
} else {
return v;
}
CUTE_GCC_UNREACHABLE;
});
// Replace any dynamic elements within order with large-static elements
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 {
return seq_v;
}
CUTE_GCC_UNREACHABLE;
});
auto new_order = unflatten(ref_order, order);