Commit 8cd13a7
authored
[SYCL][CL] Fix ownership of native handle in sycl::make_queue (#18309)
Level Zero is the only backend which has any explicit ownership transfer
controls when creating SYCL objects from native handles.
The CUDA and HIP backends already had the default to not transferring
ownership of native handles.
Up until this patch the OpenCL backend was transferring ownership when
creating with a native handle, when combined with the changes to the
OpenCL adapter in intel/llvm#17572 this caused
crashes in existing workloads which expect to manage ownership of the
OpenCL native handles.
Fixes URT-905.1 parent 20a7abc commit 8cd13a7
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
332 | 330 | | |
333 | 331 | | |
334 | 332 | | |
335 | 333 | | |
336 | | - | |
337 | | - | |
338 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
339 | 337 | | |
340 | 338 | | |
341 | | - | |
| 339 | + | |
342 | 340 | | |
343 | 341 | | |
344 | 342 | | |
| |||
0 commit comments