Commit af2a388
[QNN EP] Fix segfault when unregistering HTP shared memory handles (#23402)
### Description
- Fixes segfault when the function that cleans up HTP memory handles
uses an invalid Logger.
- Fixes unit test that compares output from QNN EP with exact float
values. QNN HTP runs float32 models with float16 precision, so need to
use a tolerance in the comparison.
### Motivation and Context
Fixes issues with using QNN HTP memory sharing on Windows ARM64. This is
also needed to test HTP shared memory with
#23120.1 parent f3a4e99 commit af2a388
File tree
3 files changed
+28
-9
lines changed- onnxruntime
- core/providers/qnn/builder
- test
- providers/qnn
3 files changed
+28
-9
lines changedLines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | | - | |
95 | | - | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
1116 | 1122 | | |
1117 | 1123 | | |
1118 | 1124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1960 | 1960 | | |
1961 | 1961 | | |
1962 | 1962 | | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
1963 | 1969 | | |
1964 | 1970 | | |
1965 | 1971 | | |
| |||
2275 | 2281 | | |
2276 | 2282 | | |
2277 | 2283 | | |
| 2284 | + | |
| 2285 | + | |
2278 | 2286 | | |
2279 | 2287 | | |
| 2288 | + | |
2280 | 2289 | | |
2281 | 2290 | | |
2282 | 2291 | | |
| |||
2293 | 2302 | | |
2294 | 2303 | | |
2295 | 2304 | | |
2296 | | - | |
| 2305 | + | |
2297 | 2306 | | |
2298 | 2307 | | |
2299 | 2308 | | |
| |||
2308 | 2317 | | |
2309 | 2318 | | |
2310 | 2319 | | |
2311 | | - | |
| 2320 | + | |
2312 | 2321 | | |
2313 | 2322 | | |
2314 | 2323 | | |
| |||
2336 | 2345 | | |
2337 | 2346 | | |
2338 | 2347 | | |
2339 | | - | |
| 2348 | + | |
2340 | 2349 | | |
2341 | 2350 | | |
2342 | 2351 | | |
| |||
0 commit comments