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
[UR][SYCL] Implement USM prefetch from device to host in SYCL runtime and UR (#19437)
Add the ability to control USM prefetch direction (host-to-device,
device-to-host) in the enqueue_function extension:
```cpp
sycl::ext::oneapi::experimental {
enum class prefetch_type { device, host };
void prefetch(sycl::queue q, void* ptr, size_t numBytes,
prefetch_type type = prefetch_type::device);
void prefetch(sycl::handler &h, void* ptr, size_t numBytes,
prefetch_type type = prefetch_type::device);
}
```
**Note:**
- ~~There is a test failure regarding a new ABI symbol: In order to not
break the ABI, I added a new handler function to represent prefetch from
device-to-host. Despite the precommit failures, this should not be an
ABI-breaking change and thus be okay to merge.~~ I modified the ABI
symbols tests as a part of this PR.
---------
Co-authored-by: Pablo Reble <[email protected]>
0 commit comments