Commit e6e048e
authored
KFI-203 Improve thread safety of packing in convolve_kleidiai.cpp (#26575)
### Description
Making cache objects of packed data thread_local rather than static.
### Motivation and Context
Both LHS and RHS packing utilize a cache mechanism based on a static
unordered map. There's the potential for interference between parallel
inference sessions. Made both structures thread_local.
Signed-off-by: Colm Donelan <[email protected]>1 parent 8e951ef commit e6e048e
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
| 335 | + | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
478 | | - | |
| 477 | + | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
0 commit comments