llvm
d3123b98 - [SYCL][NATIVECPU] Reference counting native_cpu mem handle kernel arguments (#17558)

Commit
353 days ago
[SYCL][NATIVECPU] Reference counting native_cpu mem handle kernel arguments (#17558) This PR fixes mem handle arguments for asynchronous kernel launches. This makes at least the following e2e tests pass on native cpu: ``` SpecConstants/2020/hierarchy.cpp SpecConstants/2020/marray_vec.cpp ``` The native_cpu kernel handle now reference-counts the mem handle arguments to prevent their potential release by the SYCL runtime before the enqueued kernel started using them (if the thread takes longer to start). These arguments are then freed when the kernel handle is released. The native_cpu mem handle class now reuses the same reference counting as the other native_cpu handles instead of having its own reference counting members, which were removed.
Author
Parents
Loading