You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
0 commit comments