Commit 255f304
authored
[SYCL] Fix leak of device handle (#2671)
There is a circular dependency between the device_impl and the
platform_impl, each holding a shared pointer to the other, which
prevents their destruction. The patch replaces the vector of shared
pointers in the platform_impl with a vector of weak_ptr.
Signed-off-by: Chris Perkins <chris.perkins@intel.com>1 parent 7ecdd0a commit 255f304
File tree
3 files changed
+7
-4
lines changed- sycl
- source/detail
- test/basic_tests/queue
3 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
0 commit comments