| 1 | #!/usr/bin/env python3 |
| 2 | # |
| 3 | # SPDX-FileCopyrightText: Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com> |
| 4 | # |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | from dataclasses import dataclass |
| 7 | |
| 8 | |
| 9 | @dataclass(frozen=True) |
| 10 | class KnownIssue: |
| 11 | expected: str |
| 12 | description: str |
| 13 | |
| 14 | |
| 15 | def _known_issues( |
| 16 | description: str, issues: tuple[tuple[str, str], ...] |
| 17 | ) -> dict[str, KnownIssue]: |
| 18 | return { |
| 19 | name: KnownIssue(expected=expected, description=description) |
| 20 | for name, expected in issues |
| 21 | } |
| 22 | |
| 23 | |
| 24 | KNOWN_UKERNEL_PROBLEMS: dict[str, KnownIssue] = {} |
| 25 | |
| 26 | KNOWN_UKERNEL_PROBLEMS.update( |
| 27 | _known_issues( |
| 28 | description=( |
| 29 | "Includes the K/block-depth component in the matmul tile field. " |
| 30 | "The tile field names only the output block shape (`m x n`); " |
| 31 | "packing depth belongs in the packed buffer descriptors." |
| 32 | ), |
| 33 | issues=( |
| 34 | ( |
| 35 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4c32p4x8_16x4x32_neon_i8mm", |
| 36 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4c32p4x8_16x4_neon_i8mm", |
| 37 | ), |
| 38 | ( |
| 39 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4c32p4x8_8x4x32_neon_i8mm", |
| 40 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4c32p4x8_8x4_neon_i8mm", |
| 41 | ), |
| 42 | ( |
| 43 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4c32p8x8_4x8x32_neon_i8mm", |
| 44 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4c32p8x8_4x8_neon_i8mm", |
| 45 | ), |
| 46 | ( |
| 47 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp4x8_4x4x32_neon_i8mm", |
| 48 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp4x8_4x4_neon_i8mm", |
| 49 | ), |
| 50 | ( |
| 51 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp4x8_8x4x32_neon_i8mm", |
| 52 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp4x8_8x4_neon_i8mm", |
| 53 | ), |
| 54 | ( |
| 55 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp8x8_4x8x32_neon_i8mm", |
| 56 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp8x8_4x8_neon_i8mm", |
| 57 | ), |
| 58 | ( |
| 59 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp8x8_8x8x32_neon_i8mm", |
| 60 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp8x8_8x8_neon_i8mm", |
| 61 | ), |
| 62 | ( |
| 63 | "kai_matmul_clamp_f32_qsi8d32p4x8_qsi4c32p4x8_8x4x32_neon_i8mm", |
| 64 | "kai_matmul_clamp_f32_qsi8d32p4x8_qsi4c32p4x8_8x4_neon_i8mm", |
| 65 | ), |
| 66 | ), |
| 67 | ) |
| 68 | ) |
| 69 | |
| 70 | KNOWN_UKERNEL_PROBLEMS.update( |
| 71 | _known_issues( |
| 72 | description=( |
| 73 | "Includes the K/block-depth component in the matmul tile field. " |
| 74 | "The tile field names only the output block shape (`m x n`); " |
| 75 | "packing depth belongs in the packed buffer descriptors. Uses " |
| 76 | "deprecated `biasf*` spelling; packed bias should be encoded as " |
| 77 | "`b<type>` after the packed shape." |
| 78 | ), |
| 79 | issues=( |
| 80 | ( |
| 81 | "kai_matmul_clamp_f16_f16_f16p16x1biasf16_6x16x8_neon_mla", |
| 82 | "kai_matmul_clamp_f16_f16_f16p16x1bf16_6x16_neon_mla", |
| 83 | ), |
| 84 | ( |
| 85 | "kai_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla", |
| 86 | "kai_matmul_clamp_f32_f32_f32p8x1bf32_6x8_neon_mla", |
| 87 | ), |
| 88 | ), |
| 89 | ) |
| 90 | ) |
| 91 | |
| 92 | KNOWN_UKERNEL_PROBLEMS.update( |
| 93 | _known_issues( |
| 94 | description=( |
| 95 | "The packed descriptor is missing/reordering packed shape or puts " |
| 96 | "pack order on an unpacked source buffer." |
| 97 | ), |
| 98 | issues=( |
| 99 | ( |
| 100 | "kai_rhs_pack_kxn_qsi4c32p_qsu4c32s1s0", |
| 101 | "kai_rhs_pack_kxn_qsi4c32pnrx4_qsu4c32", |
| 102 | ), |
| 103 | ( |
| 104 | "kai_rhs_pack_kxn_qsi4c32ps1s0nrx4_qsu4c32s1s0_neon", |
| 105 | "kai_rhs_pack_kxn_qsi4c32pnrx4s1s0_qsu4c32_neon", |
| 106 | ), |
| 107 | ( |
| 108 | "kai_rhs_pack_kxn_qsi4cxp_qs4cxs1s0", |
| 109 | "kai_rhs_pack_kxn_qsi4cxpnrx4_qsi4cx", |
| 110 | ), |
| 111 | ( |
| 112 | "kai_rhs_pack_kxn_qsi8cxp_qsi8cx_neon", |
| 113 | "kai_rhs_pack_kxn_qsi8cxpnrx4_qsi8cx_neon", |
| 114 | ), |
| 115 | ( |
| 116 | "kai_rhs_pack_nxk_qai4c32p_qau4c32s0s1_f32_f32_f32_neon", |
| 117 | "kai_rhs_pack_nxk_qai4c32pnrx4_qau4c32_f32_f32_f32_neon", |
| 118 | ), |
| 119 | ( |
| 120 | "kai_rhs_pack_nxk_qai4c32ps1s0nrx4_qau4c32s0s1_f32_f32_f32_neon", |
| 121 | "kai_rhs_pack_nxk_qai4c32pnrx4s1s0_qau4c32_f32_f32_f32_neon", |
| 122 | ), |
| 123 | ( |
| 124 | "kai_rhs_pack_nxk_qai4c32ps1s0nrx4_qau4c32s1s0_f32_f32_f32_neon", |
| 125 | "kai_rhs_pack_nxk_qai4c32pnrx4s1s0_qau4c32_f32_f32_f32_neon", |
| 126 | ), |
| 127 | ( |
| 128 | "kai_rhs_pack_nxk_qsi4c32p_qsu4c32s1s0", |
| 129 | "kai_rhs_pack_nxk_qsi4c32pnrx4_qsu4c32", |
| 130 | ), |
| 131 | ( |
| 132 | "kai_rhs_pack_nxk_qsi4c32pnrx4_qsu4c32s1s0_neon", |
| 133 | "kai_rhs_pack_nxk_qsi4c32pnrx4_qsu4c32_neon", |
| 134 | ), |
| 135 | ( |
| 136 | "kai_rhs_pack_nxk_qsi4c32pnrx8_qsu4c32s1s0_neon", |
| 137 | "kai_rhs_pack_nxk_qsi4c32pnrx8_qsu4c32_neon", |
| 138 | ), |
| 139 | ( |
| 140 | "kai_rhs_pack_nxk_qsi4c32ps1s0nrx4_qsu4c32s1s0_neon", |
| 141 | "kai_rhs_pack_nxk_qsi4c32pnrx4s1s0_qsu4c32_neon", |
| 142 | ), |
| 143 | ( |
| 144 | "kai_rhs_pack_nxk_qsi4c32ps4s0sf16_qsu4c32s16s0_neon", |
| 145 | "kai_rhs_pack_nxk_qsi4c32pnrx4s4s0sf16_qsu4c32_neon", |
| 146 | ), |
| 147 | ( |
| 148 | "kai_rhs_pack_nxk_qsi4cxp_qs4cxs1s0", |
| 149 | "kai_rhs_pack_nxk_qsi4cxpnrx4_qsi4cx", |
| 150 | ), |
| 151 | ( |
| 152 | "kai_rhs_pack_nxk_qsi8cxp_qsi8cx_neon", |
| 153 | "kai_rhs_pack_nxk_qsi8cxpnrx4_qsi8cx_neon", |
| 154 | ), |
| 155 | ), |
| 156 | ) |
| 157 | ) |
| 158 | |
| 159 | KNOWN_UKERNEL_PROBLEMS.update( |
| 160 | _known_issues( |
| 161 | description=( |
| 162 | "Uses `dotprod` as an instruction suffix; the grammar uses the " |
| 163 | "`dot` instruction mnemonic. Includes the K/block-depth component " |
| 164 | "in the matmul tile field. The tile field names only the output " |
| 165 | "block shape (`m x n`); packing depth belongs in the packed " |
| 166 | "buffer descriptors." |
| 167 | ), |
| 168 | issues=( |
| 169 | ( |
| 170 | "kai_matmul_clamp_f32_qai8dxp1x8_qsi4c32p4x8_1x4x32_neon_dotprod", |
| 171 | "kai_matmul_clamp_f32_qai8dxp1x8_qsi4c32p4x8_1x4_neon_dot", |
| 172 | ), |
| 173 | ( |
| 174 | "kai_matmul_clamp_f32_qai8dxp1x8_qsi4c32p8x8_1x8x32_neon_dotprod", |
| 175 | "kai_matmul_clamp_f32_qai8dxp1x8_qsi4c32p8x8_1x8_neon_dot", |
| 176 | ), |
| 177 | ( |
| 178 | "kai_matmul_clamp_f32_qai8dxp1x8_qsi4cxp4x8_1x4x32_neon_dotprod", |
| 179 | "kai_matmul_clamp_f32_qai8dxp1x8_qsi4cxp4x8_1x4_neon_dot", |
| 180 | ), |
| 181 | ( |
| 182 | "kai_matmul_clamp_f32_qai8dxp1x8_qsi4cxp8x8_1x8x32_neon_dotprod", |
| 183 | "kai_matmul_clamp_f32_qai8dxp1x8_qsi4cxp8x8_1x8_neon_dot", |
| 184 | ), |
| 185 | ( |
| 186 | "kai_matmul_clamp_f32_qai8dxp4x4_qsi4cxp8x4_8x8x32_neon_dotprod", |
| 187 | "kai_matmul_clamp_f32_qai8dxp4x4_qsi4cxp8x4_8x8_neon_dot", |
| 188 | ), |
| 189 | ( |
| 190 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp4x4_16x4x32_neon_dotprod", |
| 191 | "kai_matmul_clamp_f32_qai8dxp4x8_qsi4cxp4x4_16x4_neon_dot", |
| 192 | ), |
| 193 | ( |
| 194 | "kai_matmul_clamp_f32_qsi8d32p1x8_qsi4c32p4x8_1x4x32_neon_dotprod", |
| 195 | "kai_matmul_clamp_f32_qsi8d32p1x8_qsi4c32p4x8_1x4_neon_dot", |
| 196 | ), |
| 197 | ), |
| 198 | ) |
| 199 | ) |
| 200 | |
| 201 | KNOWN_UKERNEL_PROBLEMS.update( |
| 202 | _known_issues( |
| 203 | description=( |
| 204 | "Uses `dotprod` as an instruction suffix; the grammar uses the " |
| 205 | "`dot` instruction mnemonic. Uses untyped, misplaced, or reversed " |
| 206 | "scale/bias suffixes; the grammar requires `s<type>` before " |
| 207 | "`b<type>`." |
| 208 | ), |
| 209 | issues=( |
| 210 | ( |
| 211 | "kai_matmul_clamp_f32_qai8dxp1x4_qsu2cxp4x4bf32sf32_1x4_neon_dotprod", |
| 212 | "kai_matmul_clamp_f32_qai8dxp1x4_qsu2cxp4x4sf32bf32_1x4_neon_dot", |
| 213 | ), |
| 214 | ( |
| 215 | "kai_matmul_clamp_f32_qai8dxp4x4_qsu2cxp4x4bf32sf32_8x4_neon_dotprod", |
| 216 | "kai_matmul_clamp_f32_qai8dxp4x4_qsu2cxp4x4sf32bf32_8x4_neon_dot", |
| 217 | ), |
| 218 | ), |
| 219 | ) |
| 220 | ) |
| 221 | |
| 222 | KNOWN_UKERNEL_PROBLEMS.update( |
| 223 | _known_issues( |
| 224 | description=( |
| 225 | "Uses a bare `b` suffix; packed bias should be encoded as " |
| 226 | "`b<type>` after the packed shape." |
| 227 | ), |
| 228 | issues=( |
| 229 | ( |
| 230 | "kai_dwconv_clamp_f16_f16_f16p1vlx1b_3x3_s1_4x4_sme2_mla", |
| 231 | "kai_dwconv_clamp_f16_f16_f16p1vlx1bf16_3x3_s1_4x4_sme2_mla", |
| 232 | ), |
| 233 | ( |
| 234 | "kai_dwconv_clamp_f32_f32_f32p1vlx1b_3x3_s1_4xc_sme2_mla", |
| 235 | "kai_dwconv_clamp_f32_f32_f32p1vlx1bf32_3x3_s1_4xc_sme2_mla", |
| 236 | ), |
| 237 | ( |
| 238 | "kai_rhs_dwconv_pack_x16p1vlx1b_x16_x16_sme", |
| 239 | "kai_rhs_dwconv_pack_x16p1vlx1bx16_x16_x16_sme", |
| 240 | ), |
| 241 | ( |
| 242 | "kai_rhs_dwconv_pack_x32p1vlx1b_x32_x32_sme", |
| 243 | "kai_rhs_dwconv_pack_x32p1vlx1bx32_x32_x32_sme", |
| 244 | ), |
| 245 | ( |
| 246 | "kai_imatmul_clamp_f16_f16p2vlx2_f16p2vlx2b_2vlx2vl_sme_mopa", |
| 247 | "kai_imatmul_clamp_f16_f16p2vlx2_f16p2vlx2bf16_2vlx2vl_sme_mopa", |
| 248 | ), |
| 249 | ( |
| 250 | "kai_imatmul_clamp_f32_f32_f32p4vlx1b_6x4vl_sve_mla", |
| 251 | "kai_imatmul_clamp_f32_f32_f32p4vlx1bf32_6x4vl_sve_mla", |
| 252 | ), |
| 253 | ( |
| 254 | "kai_imatmul_clamp_f32_f32p2vlx1_f32p2vlx1b_2vlx2vl_sme2_mopa", |
| 255 | "kai_imatmul_clamp_f32_f32p2vlx1_f32p2vlx1bf32_2vlx2vl_sme2_mopa", |
| 256 | ), |
| 257 | ( |
| 258 | "kai_imatmul_clamp_f32_f32p2vlx1_f32p2vlx1b_2vlx2vl_sme_mopa", |
| 259 | "kai_imatmul_clamp_f32_f32p2vlx1_f32p2vlx1bf32_2vlx2vl_sme_mopa", |
| 260 | ), |
| 261 | ( |
| 262 | "kai_matmul_clamp_f16_bf16p8x4_bf16p12x4b_8x12_neon_mmla", |
| 263 | "kai_matmul_clamp_f16_bf16p8x4_bf16p12x4bf16_8x12_neon_mmla", |
| 264 | ), |
| 265 | ( |
| 266 | "kai_matmul_clamp_f16_f16_f16p2vlx2b_1x16vl_sme2_dot", |
| 267 | "kai_matmul_clamp_f16_f16_f16p2vlx2bf16_1x16vl_sme2_dot", |
| 268 | ), |
| 269 | ( |
| 270 | "kai_matmul_clamp_f16_f16_f16p2vlx2b_1x8vl_sme_mla", |
| 271 | "kai_matmul_clamp_f16_f16_f16p2vlx2bf16_1x8vl_sme_mla", |
| 272 | ), |
| 273 | ( |
| 274 | "kai_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla", |
| 275 | "kai_matmul_clamp_f16_f16_f16p32x1bf16_6x32_neon_mla", |
| 276 | ), |
| 277 | ( |
| 278 | "kai_matmul_clamp_f16_f16_f16p32x1b_6x32_neon_mla_cortexa55", |
| 279 | "kai_matmul_clamp_f16_f16_f16p32x1bf16_6x32_neon_mla_cortexa55", |
| 280 | ), |
| 281 | ( |
| 282 | "kai_matmul_clamp_f16_f16p2vlx2_f16p2vlx2b_2vlx2vl_sme_mopa", |
| 283 | "kai_matmul_clamp_f16_f16p2vlx2_f16p2vlx2bf16_2vlx2vl_sme_mopa", |
| 284 | ), |
| 285 | ( |
| 286 | "kai_matmul_clamp_f32_bf16p1x4_bf16p12x4b_1x36_neon_dot", |
| 287 | "kai_matmul_clamp_f32_bf16p1x4_bf16p12x4bf32_1x36_neon_dot", |
| 288 | ), |
| 289 | ( |
| 290 | "kai_matmul_clamp_f32_bf16p8x4_bf16p12x4b_8x12_neon_mmla", |
| 291 | "kai_matmul_clamp_f32_bf16p8x4_bf16p12x4bf32_8x12_neon_mmla", |
| 292 | ), |
| 293 | ( |
| 294 | "kai_matmul_clamp_f32_f32_f32p16vlx1b_1x16vl_sme2_mla", |
| 295 | "kai_matmul_clamp_f32_f32_f32p16vlx1bf32_1x16vl_sme2_mla", |
| 296 | ), |
| 297 | ( |
| 298 | "kai_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla", |
| 299 | "kai_matmul_clamp_f32_f32_f32p16x1bf32_6x16_neon_mla", |
| 300 | ), |
| 301 | ( |
| 302 | "kai_matmul_clamp_f32_f32_f32p16x1b_6x16_neon_mla_cortexa55", |
| 303 | "kai_matmul_clamp_f32_f32_f32p16x1bf32_6x16_neon_mla_cortexa55", |
| 304 | ), |
| 305 | ( |
| 306 | "kai_matmul_clamp_f32_f32_f32p2vlx1b_1x16vl_sme2_mla", |
| 307 | "kai_matmul_clamp_f32_f32_f32p2vlx1bf32_1x16vl_sme2_mla", |
| 308 | ), |
| 309 | ( |
| 310 | "kai_matmul_clamp_f32_f32_f32p2vlx1b_1x8vl_sme_mla", |
| 311 | "kai_matmul_clamp_f32_f32_f32p2vlx1bf32_1x8vl_sme_mla", |
| 312 | ), |
| 313 | ( |
| 314 | "kai_matmul_clamp_f32_f32_f32p4vlx1b_6x4vl_sve_mla", |
| 315 | "kai_matmul_clamp_f32_f32_f32p4vlx1bf32_6x4vl_sve_mla", |
| 316 | ), |
| 317 | ( |
| 318 | "kai_matmul_clamp_f32_f32p2vlx1_f32p2vlx1b_2vlx2vl_sme_mopa", |
| 319 | "kai_matmul_clamp_f32_f32p2vlx1_f32p2vlx1bf32_2vlx2vl_sme_mopa", |
| 320 | ), |
| 321 | ( |
| 322 | "kai_rhs_pack_kxn_bf16p2vlx2b_f32_x32_sme", |
| 323 | "kai_rhs_pack_kxn_bf16p2vlx2bf32_f32_x32_sme", |
| 324 | ), |
| 325 | ( |
| 326 | "kai_rhs_pack_kxn_f32p16vlx1b_f32_f32_sme", |
| 327 | "kai_rhs_pack_kxn_f32p16vlx1bf32_f32_f32_sme", |
| 328 | ), |
| 329 | ( |
| 330 | "kai_rhs_pack_kxn_x16p2vlx2b_x16_x16_sme", |
| 331 | "kai_rhs_pack_kxn_x16p2vlx2bx16_x16_x16_sme", |
| 332 | ), |
| 333 | ( |
| 334 | "kai_rhs_pack_kxn_x16p32x1b_x16_x16_neon", |
| 335 | "kai_rhs_pack_kxn_x16p32x1bx16_x16_x16_neon", |
| 336 | ), |
| 337 | ( |
| 338 | "kai_rhs_pack_kxn_x32p16x1b_x32_x32_neon", |
| 339 | "kai_rhs_pack_kxn_x32p16x1bx32_x32_x32_neon", |
| 340 | ), |
| 341 | ( |
| 342 | "kai_rhs_pack_kxn_x32p4vlx1b_x32_x32_sve", |
| 343 | "kai_rhs_pack_kxn_x32p4vlx1bx32_x32_x32_sve", |
| 344 | ), |
| 345 | ( |
| 346 | "kai_rhs_pack_nxk_qsi4cxps1s0_qsu4cxs1s0_neon", |
| 347 | "kai_rhs_pack_nxk_qsi4cxpnrx4s1s0_qsu4cx_neon", |
| 348 | ), |
| 349 | ( |
| 350 | "kai_rhs_pack_nxk_x16p2vlx2b_x16_x16_sme", |
| 351 | "kai_rhs_pack_nxk_x16p2vlx2bx16_x16_x16_sme", |
| 352 | ), |
| 353 | ), |
| 354 | ) |
| 355 | ) |
| 356 | |
| 357 | KNOWN_UKERNEL_PROBLEMS.update( |
| 358 | _known_issues( |
| 359 | description=( |
| 360 | "Uses deprecated `biasf*` spelling; packed bias should be encoded " |
| 361 | "as `b<type>` after the packed shape." |
| 362 | ), |
| 363 | issues=( |
| 364 | ( |
| 365 | "kai_matmul_clamp_f32_f32p2vlx1_f32p2vlx1biasf32_sme2_mopa", |
| 366 | "kai_matmul_clamp_f32_f32p2vlx1_f32p2vlx1bf32_sme2_mopa", |
| 367 | ), |
| 368 | ( |
| 369 | "kai_rhs_pack_kxn_bf16p12x4biasf16_f16_neon", |
| 370 | "kai_rhs_pack_kxn_bf16p12x4bf16_f16_neon", |
| 371 | ), |
| 372 | ( |
| 373 | "kai_rhs_pack_kxn_bf16p12x4biasf32_f16_neon", |
| 374 | "kai_rhs_pack_kxn_bf16p12x4bf32_f16_neon", |
| 375 | ), |
| 376 | ( |
| 377 | "kai_rhs_pack_kxn_f16p16x1biasf16_f16_f16_neon", |
| 378 | "kai_rhs_pack_kxn_f16p16x1bf16_f16_f16_neon", |
| 379 | ), |
| 380 | ( |
| 381 | "kai_rhs_pack_kxn_f32p2vlx1biasf32_f32_f32_sme", |
| 382 | "kai_rhs_pack_kxn_f32p2vlx1bf32_f32_f32_sme", |
| 383 | ), |
| 384 | ( |
| 385 | "kai_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon", |
| 386 | "kai_rhs_pack_kxn_f32p8x1bf32_f32_f32_neon", |
| 387 | ), |
| 388 | ( |
| 389 | "kai_rhs_pack_nxk_f32p2vlx1biasf32_f32_f32_sme", |
| 390 | "kai_rhs_pack_nxk_f32p2vlx1bf32_f32_f32_sme", |
| 391 | ), |
| 392 | ), |
| 393 | ) |
| 394 | ) |
| 395 | |
| 396 | KNOWN_UKERNEL_PROBLEMS.update( |
| 397 | _known_issues( |
| 398 | description=( |
| 399 | "Uses deprecated `scalef*` spelling; packed scale should be " |
| 400 | "encoded as `s<type>` after the packed shape. The packed " |
| 401 | "descriptor is missing/reordering packed shape or puts pack order " |
| 402 | "on an unpacked source buffer." |
| 403 | ), |
| 404 | issues=( |
| 405 | ( |
| 406 | "kai_rhs_pack_nxk_qsi4c32ps1s0scalef16_qsu4c32s16s0_neon", |
| 407 | "kai_rhs_pack_nxk_qsi4c32pnrx4s1s0sf16_qsu4c32_neon", |
| 408 | ), |
| 409 | ( |
| 410 | "kai_rhs_pack_nxk_qsi4c32pscalef16_qsu4c32s16s0", |
| 411 | "kai_rhs_pack_nxk_qsi4c32pnrx4sf16_qsu4c32", |
| 412 | ), |
| 413 | ), |
| 414 | ) |
| 415 | ) |
| 416 | |
| 417 | KNOWN_UKERNEL_PROBLEMS.update( |
| 418 | _known_issues( |
| 419 | description=( |
| 420 | "Uses the generic `matmul_pack_*` API prefix instead of the " |
| 421 | "naming-rule pack operation." |
| 422 | ), |
| 423 | issues=( |
| 424 | ( |
| 425 | "kai_matmul_pack_lhs_mxk_x32p4vsx1_x32_sme", |
| 426 | "kai_lhs_pack_x32p4vsx1_x32_sme", |
| 427 | ), |
| 428 | ( |
| 429 | "kai_matmul_pack_lhs_mxk_x8p4vsx4_x8_sme", |
| 430 | "kai_lhs_pack_x8p4vsx4_x8_sme", |
| 431 | ), |
| 432 | ( |
| 433 | "kai_matmul_pack_rhs_kxn_x32p4vsx1bx32_x32_x32_sme", |
| 434 | "kai_rhs_pack_kxn_x32p4vsx1bx32_x32_x32_sme", |
| 435 | ), |
| 436 | ( |
| 437 | "kai_matmul_pack_rhs_kxn_x8p4vsx4_x8_sme", |
| 438 | "kai_rhs_pack_kxn_x8p4vsx4_x8_sme", |
| 439 | ), |
| 440 | ( |
| 441 | "kai_matmul_pack_rhs_nxk_x32p4vsx1bx32_x32_x32_sme", |
| 442 | "kai_rhs_pack_nxk_x32p4vsx1bx32_x32_x32_sme", |
| 443 | ), |
| 444 | ( |
| 445 | "kai_matmul_pack_rhs_nxk_x8p4vsx4_x8_sme", |
| 446 | "kai_rhs_pack_nxk_x8p4vsx4_x8_sme", |
| 447 | ), |
| 448 | ), |
| 449 | ) |
| 450 | ) |
| 451 | |
| 452 | KNOWN_UKERNEL_PROBLEMS.update( |
| 453 | _known_issues( |
| 454 | description=( |
| 455 | "Uses the generic `matmul_pack_*` API prefix instead of the " |
| 456 | "naming-rule pack operation. Uses untyped, misplaced, or reversed " |
| 457 | "scale/bias suffixes; the grammar requires `s<type>` before " |
| 458 | "`b<type>`." |
| 459 | ), |
| 460 | issues=( |
| 461 | ( |
| 462 | "kai_matmul_pack_rhs_kxn_qsi8cxp4vsx4bi32sf32_qsi8_i32_f32_sme", |
| 463 | "kai_rhs_pack_kxn_qsi8cxp4vsx4sf32bi32_qsi8_i32_f32_sme", |
| 464 | ), |
| 465 | ), |
| 466 | ) |
| 467 | ) |
| 468 | |
| 469 | KNOWN_UKERNEL_PROBLEMS.update( |
| 470 | _known_issues( |
| 471 | description=( |
| 472 | "Uses the legacy `lhs_quant_pack` operation name; the output " |
| 473 | "buffer descriptor should carry the quantized packed format " |
| 474 | "instead." |
| 475 | ), |
| 476 | issues=( |
| 477 | ( |
| 478 | "kai_lhs_quant_pack_bf16p1x4_f32_neon", |
| 479 | "kai_lhs_pack_bf16p1x4_f32_neon", |
| 480 | ), |
| 481 | ( |
| 482 | "kai_lhs_quant_pack_bf16p8x4_f32_neon", |
| 483 | "kai_lhs_pack_bf16p8x4_f32_neon", |
| 484 | ), |
| 485 | ( |
| 486 | "kai_lhs_quant_pack_qai8dxp_bf16_neon", |
| 487 | "kai_lhs_pack_qai8dxpmrx4_bf16_neon", |
| 488 | ), |
| 489 | ( |
| 490 | "kai_lhs_quant_pack_qai8dxp_f16_neon", |
| 491 | "kai_lhs_pack_qai8dxpmrx4_f16_neon", |
| 492 | ), |
| 493 | ( |
| 494 | "kai_lhs_quant_pack_qai8dxp_f32", |
| 495 | "kai_lhs_pack_qai8dxpmrx4_f32", |
| 496 | ), |
| 497 | ( |
| 498 | "kai_lhs_quant_pack_qsi8d32p_f32", |
| 499 | "kai_lhs_pack_qsi8d32pmrx4_f32", |
| 500 | ), |
| 501 | ( |
| 502 | "kai_lhs_quant_pack_qsi8d32p_f32_neon", |
| 503 | "kai_lhs_pack_qsi8d32pmrx4_f32_neon", |
| 504 | ), |
| 505 | ), |
| 506 | ) |
| 507 | ) |
| 508 | |
| 509 | KNOWN_UKERNEL_PROBLEMS.update( |
| 510 | _known_issues( |
| 511 | description=( |
| 512 | "Uses the legacy `lhs_quant_pack` operation name; the output " |
| 513 | "buffer descriptor should carry the quantized packed format " |
| 514 | "instead. Uses deprecated `scalef*` spelling; packed scale should " |
| 515 | "be encoded as `s<type>` after the packed shape." |
| 516 | ), |
| 517 | issues=( |
| 518 | ( |
| 519 | "kai_lhs_quant_pack_qsi8d32pscalef32_f16_neon", |
| 520 | "kai_lhs_pack_qsi8d32pmrx4sf32_f16_neon", |
| 521 | ), |
| 522 | ( |
| 523 | "kai_lhs_quant_pack_qsi8d32pscalef32_f32_neon", |
| 524 | "kai_lhs_pack_qsi8d32pmrx4sf32_f32_neon", |
| 525 | ), |
| 526 | ), |
| 527 | ) |
| 528 | ) |
| 529 | |
| 530 | KNOWN_UKERNEL_PROBLEMS.update( |
| 531 | _known_issues( |
| 532 | description=( |
| 533 | "Uses the legacy `lhs_quant_pack` operation name; the output " |
| 534 | "buffer descriptor should carry the quantized packed format " |
| 535 | "instead. Uses untyped, misplaced, or reversed scale/bias " |
| 536 | "suffixes; the grammar requires `s<type>` before `b<type>`." |
| 537 | ), |
| 538 | issues=( |
| 539 | ( |
| 540 | "kai_lhs_quant_pack_qsi8d32p4x8sb_f32_neon", |
| 541 | "kai_lhs_pack_qsi8d32p4x8sf16_f32_neon", |
| 542 | ), |
| 543 | ), |
| 544 | ) |
| 545 | ) |
| 546 | |
| 547 | KNOWN_UKERNEL_PROBLEMS.update( |
| 548 | _known_issues( |
| 549 | description=( |
| 550 | "Uses the legacy `rhs_quant_pack` operation name; RHS packers " |
| 551 | "should use `rhs_pack_kxn`. Uses deprecated `biasf*` spelling; " |
| 552 | "packed bias should be encoded as `b<type>` after the packed shape." |
| 553 | ), |
| 554 | issues=( |
| 555 | ( |
| 556 | "kai_rhs_quant_pack_kxn_bf16p12x4biasf32_f32_neon", |
| 557 | "kai_rhs_pack_kxn_bf16p12x4bf32_f32_neon", |
| 558 | ), |
| 559 | ), |
| 560 | ) |
| 561 | ) |
| 562 | |
| 563 | KNOWN_UKERNEL_PROBLEMS.update( |
| 564 | _known_issues( |
| 565 | description=( |
| 566 | "Uses the legacy indirect-matmul pack operation name; pack " |
| 567 | "micro-kernels should use `lhs_pack` or `rhs_pack_kxn`." |
| 568 | ), |
| 569 | issues=( |
| 570 | ( |
| 571 | "kai_lhs_imatmul_pack_x16p2vlx2_x16p_sme", |
| 572 | "kai_lhs_pack_x16p2vlx2_x16_sme", |
| 573 | ), |
| 574 | ( |
| 575 | "kai_lhs_imatmul_pack_x32p2vlx1_x32p_sme", |
| 576 | "kai_lhs_pack_x32p2vlx1_x32_sme", |
| 577 | ), |
| 578 | ( |
| 579 | "kai_lhs_imatmul_pack_x8p2vlx4_x8p_sme", |
| 580 | "kai_lhs_pack_x8p2vlx4_x8_sme", |
| 581 | ), |
| 582 | ( |
| 583 | "kai_rhs_imatmul_pack_kxn_x16p2vlx2b_x16_x16_sme", |
| 584 | "kai_rhs_pack_kxn_x16p2vlx2bx16_x16_x16_sme", |
| 585 | ), |
| 586 | ( |
| 587 | "kai_rhs_imatmul_pack_kxn_x32p2vlx1b_x32_x32_sme", |
| 588 | "kai_rhs_pack_kxn_x32p2vlx1bx32_x32_x32_sme", |
| 589 | ), |
| 590 | ( |
| 591 | "kai_rhs_imatmul_pack_kxn_x32p4vlx1b_x32_x32_sve", |
| 592 | "kai_rhs_pack_kxn_x32p4vlx1bx32_x32_x32_sve", |
| 593 | ), |
| 594 | ), |
| 595 | ) |
| 596 | ) |
| 597 | |
| 598 | KNOWN_UKERNEL_PROBLEMS.update( |
| 599 | _known_issues( |
| 600 | description=( |
| 601 | "Uses the legacy indirect-matmul pack operation name; pack " |
| 602 | "micro-kernels should use `lhs_pack` or `rhs_pack_kxn`. Uses " |
| 603 | "untyped, misplaced, or reversed scale/bias suffixes; the grammar " |
| 604 | "requires `s<type>` before `b<type>`." |
| 605 | ), |
| 606 | issues=( |
| 607 | ( |
| 608 | "kai_rhs_imatmul_pack_kxn_qsi8cxp2vlx4sb_qs8cx_f32_i32_sme", |
| 609 | "kai_rhs_pack_kxn_qsi8cxp2vlx4sf32bi32_qsi8cx_f32_i32_sme", |
| 610 | ), |
| 611 | ), |
| 612 | ) |
| 613 | ) |
| 614 | |
| 615 | KNOWN_UKERNEL_PROBLEMS.update( |
| 616 | _known_issues( |
| 617 | description=( |
| 618 | "Uses untyped, misplaced, or reversed scale/bias suffixes; the " |
| 619 | "grammar requires `s<type>` before `b<type>`." |
| 620 | ), |
| 621 | issues=( |
| 622 | ( |
| 623 | "kai_imatmul_clamp_qai8_qai8p2vlx4_qsi8cxp2vlx4sb_2vlx2vl_sme_mopa", |
| 624 | "kai_imatmul_clamp_qai8_qai8p2vlx4_qsi8cxp2vlx4sf32bi32_2vlx2vl_sme_mopa", |
| 625 | ), |
| 626 | ( |
| 627 | "kai_imatmul_clamp_qai8_qai8p2vlx4_qsi8cxpsb2vlx4_2vlx2vl_sme2_mopa", |
| 628 | "kai_imatmul_clamp_qai8_qai8p2vlx4_qsi8cxp2vlx4sf32bi32_2vlx2vl_sme2_mopa", |
| 629 | ), |
| 630 | ( |
| 631 | "kai_matmul_clamp_qai8_qai8_qsi8cxp2vlx4sb_1x16vl_sme2_dot", |
| 632 | "kai_matmul_clamp_qai8_qai8_qsi8cxp2vlx4sf32bi32_1x16vl_sme2_dot", |
| 633 | ), |
| 634 | ( |
| 635 | "kai_matmul_clamp_qai8_qai8_qsi8cxp4vsx4bi32sf32_1x32vs_sme2_dot", |
| 636 | "kai_matmul_clamp_qai8_qai8_qsi8cxp4vsx4sf32bi32_1x32vs_sme2_dot", |
| 637 | ), |
| 638 | ( |
| 639 | "kai_matmul_clamp_qai8_qai8p2vlx4_qsi8cxp2vlx4sb_2vlx2vl_sme_mopa", |
| 640 | "kai_matmul_clamp_qai8_qai8p2vlx4_qsi8cxp2vlx4sf32bi32_2vlx2vl_sme_mopa", |
| 641 | ), |
| 642 | ( |
| 643 | "kai_matmul_clamp_qai8_qai8p2vlx4_qsi8cxpsb2vlx4_2vlx2vl_sme2_mopa", |
| 644 | "kai_matmul_clamp_qai8_qai8p2vlx4_qsi8cxp2vlx4sf32bi32_2vlx2vl_sme2_mopa", |
| 645 | ), |
| 646 | ( |
| 647 | "kai_matmul_clamp_qai8_qai8p4vsx4_qsi8cxp4vsx4bi32sf32_8vsx8vs_sme2_mopa", |
| 648 | "kai_matmul_clamp_qai8_qai8p4vsx4_qsi8cxp4vsx4sf32bi32_8vsx8vs_sme2_mopa", |
| 649 | ), |
| 650 | ( |
| 651 | "kai_rhs_pack_kxn_qsi8cxp2vlx4sb_qs8cx_f32_i32_sme", |
| 652 | "kai_rhs_pack_kxn_qsi8cxp2vlx4sf32bi32_qsi8cx_f32_i32_sme", |
| 653 | ), |
| 654 | ( |
| 655 | "kai_rhs_pack_nxk_qsu2cxp4x4bf32sf32_qsu2cx_neon", |
| 656 | "kai_rhs_pack_nxk_qsu2cxp4x4sf32bf32_qsu2cx_neon", |
| 657 | ), |
| 658 | ), |
| 659 | ) |
| 660 | ) |
| 661 | |
| 662 | KNOWN_DIRECTORY_PROBLEMS: dict[str, KnownIssue] = { |
| 663 | "matmul_clamp_fp32_bf16p_bf16p": KnownIssue( |
| 664 | expected="matmul_clamp_f32_bf16p_bf16p", |
| 665 | description="There is an additional `p` in `fp32`", |
| 666 | ) |
| 667 | } |