Repository navigation
Commit 1026ac7
committed
gemm_batch/sbgemv: fix validation, trans, 64-bit stride, and BFLOAT16
Validate CBLAS order (info = 0), group_count < 0 (info = 14), and
group_size[i] < 0 (info = 15) in gemm_batch.c prior to allocation to
prevent heap buffer overflows on negative group sizes and malloc(0)
calls.
Hoist parameter validation in gemm_batch_strided.c before allocation,
report ldb as parameter 11, ldc as parameter 15, and negative count as
parameter 17, and widen batch stride arithmetic to BLASLONG.
Accept lowercase Fortran transpose specifiers and OpenBLAS 'R'/'r'
conjugate-no-transpose in gemm_batch.c and gemm_batch_strided.c, and
wire sbgemm_batch_thread in CMake and both BFLOAT16 batch interfaces.
Check order == CblasRowMajor explicitly in interface/sbgemv.c so
invalid CBLAS order invokes xerbla with info = 0, and widen m * n to
BLASLONG.1 parent dbf2c24 commit 1026ac7
6 files changed
Lines changed: 395 additions & 195 deletions
File tree
- driver/level3
- interface
- utest/test_extensions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
158 | | - | |
| 161 | + | |
159 | 162 | | |
160 | | - | |
| 163 | + | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| |||
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
177 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
178 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
179 | 200 | | |
180 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
181 | 205 | | |
182 | | - | |
| 206 | + | |
183 | 207 | | |
184 | 208 | | |
185 | 209 | | |
| |||
297 | 321 | | |
298 | 322 | | |
299 | 323 | | |
300 | | - | |
301 | | - | |
302 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
303 | 331 | | |
304 | | - | |
| 332 | + | |
| 333 | + | |
305 | 334 | | |
306 | | - | |
| 335 | + | |
| 336 | + | |
307 | 337 | | |
308 | | - | |
309 | | - | |
| 338 | + | |
| 339 | + | |
310 | 340 | | |
311 | | - | |
| 341 | + | |
| 342 | + | |
312 | 343 | | |
313 | | - | |
| 344 | + | |
| 345 | + | |
314 | 346 | | |
| 347 | + | |
315 | 348 | | |
316 | 349 | | |
317 | 350 | | |
| |||
353 | 386 | | |
354 | 387 | | |
355 | 388 | | |
356 | | - | |
| 389 | + | |
357 | 390 | | |
358 | 391 | | |
359 | 392 | | |
| |||
0 commit comments