fix: remove static_assert in constexpr else (build fix)
This commit is contained in:
@@ -136,13 +136,11 @@ __global__ void remap_sf_to_cutlass_kernel(
|
||||
|
||||
constexpr int LayoutRank = cute::rank_v<decltype(layout_sf.shape())>;
|
||||
|
||||
int dst_idx;
|
||||
int dst_idx = 0;
|
||||
if constexpr (LayoutRank == 2) {
|
||||
dst_idx = layout_sf(cute::make_coord(mn, k_sf * InputSFVectorSize));
|
||||
} else if constexpr (LayoutRank == 3) {
|
||||
dst_idx = layout_sf(cute::make_coord(mn, k_sf * InputSFVectorSize, 0));
|
||||
} else {
|
||||
static_assert(LayoutRank == 2 || LayoutRank == 3, "Unexpected SF layout rank");
|
||||
}
|
||||
|
||||
int src_idx = mn * src_stride_mn + k_sf * src_stride_ksf;
|
||||
|
||||
Reference in New Issue
Block a user