Commit 45e1b14
authored
[SYCL][L0] Fix memory leak in PiDeviceCache and ZeCommandList (intel#2974)
Release resources in pi_platforms and pi_devices while tearing down.
Upon tear-down, platforms are destroyed.
Each platform contains a piDeviceCache.
When destroying each pi_platform, we have to destroy zeCommandList, too.
Signed-off-by: Byoungro So [email protected]1 parent 6cfc3ad commit 45e1b14
2 files changed
+16
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
409 | 423 | | |
410 | 424 | | |
411 | 425 | | |
| |||
1245 | 1259 | | |
1246 | 1260 | | |
1247 | 1261 | | |
1248 | | - | |
1249 | | - | |
| 1262 | + | |
1250 | 1263 | | |
1251 | 1264 | | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | 1265 | | |
1260 | 1266 | | |
1261 | 1267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
0 commit comments