Skip to content

Commit edd6953

Browse files
committed
Updated docs, bumped UR
1 parent 6e301db commit edd6953

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# commit c1dcb31365ffd58fc4712b7bb4be4719280aab07
2-
# Merge: 2143085f 8f33719f
1+
# commit 869a089ad75815e3cc924a7a6985f810a412012f
32
# Author: Li, Ian <[email protected]>
4-
# Date: Tue Dec 10 13:00:46 2024 -0800
5-
# Merge branch 'main' of https://github.com/oneapi-src/unified-runtime into ianayl/2way-prefetch
6-
set(UNIFIED_RUNTIME_TAG c1dcb31365ffd58fc4712b7bb4be4719280aab07)
3+
# Date: Wed Dec 11 11:40:25 2024 -0800
4+
# enforce column width
5+
set(UNIFIED_RUNTIME_TAG 869a089ad75815e3cc924a7a6985f810a412012f)

sycl/doc/extensions/experimental/sycl_ext_oneapi_enqueue_functions.asciidoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,14 +633,22 @@ a!
633633
----
634634
namespace sycl::ext::oneapi::experimental {
635635
636-
void prefetch(sycl::queue q, void* ptr, size_t numBytes);
636+
enum class prefetch_type { device, host };
637637
638-
void prefetch(sycl::handler &h, void* ptr, size_t numBytes);
638+
void prefetch(sycl::queue q, void* ptr, size_t numBytes,
639+
prefetch_type type = prefetch_type::device);
640+
641+
void prefetch(sycl::handler &h, void* ptr, size_t numBytes,
642+
prefetch_type type = prefetch_type::device);
639643
640644
}
641645
----
642646
!====
643-
_Effects_: Enqueues a `prefetch` to the `sycl::queue` or `sycl::handler`.
647+
_Effects_: Enqueues a `prefetch` to the `sycl::queue` or `sycl::handler`. The
648+
`prefetch_type` enum indicates the destination device the USM data is fetched to:
649+
i.e. a prefetch to `prefetch_type::device` fetches from the host to the device,
650+
and `prefetch_type::host` fetches from the device back to host.
651+
644652

645653
a|
646654
[frame=all,grid=none]

0 commit comments

Comments
 (0)