From 86bd8a58f462ee07920b4bfd58e0905eddbeb1be Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Thu, 6 Nov 2025 04:09:59 -0800 Subject: [PATCH] [SYCL][Docs] Clarify virtual memory accessibility This commit adds wording specifying that access mode applies to all devices in the context for which the corresponding memory is accessible. Signed-off-by: Larsen, Steffen --- .../experimental/sycl_ext_oneapi_virtual_mem.asciidoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sycl/doc/extensions/experimental/sycl_ext_oneapi_virtual_mem.asciidoc b/sycl/doc/extensions/experimental/sycl_ext_oneapi_virtual_mem.asciidoc index 72a6e1ed14f55..0408c7b2b3a3d 100644 --- a/sycl/doc/extensions/experimental/sycl_ext_oneapi_virtual_mem.asciidoc +++ b/sycl/doc/extensions/experimental/sycl_ext_oneapi_virtual_mem.asciidoc @@ -296,7 +296,9 @@ for the device associated with this instance of `physical_mem`. If `mode` is `address_access_mode::read` or `address_access_mode::read_write` the returned pointer is accessible after the call as read-only or read-write respectively. Otherwise, it is considered inaccessible and accessing it will -result in undefined behavior. +result in undefined behavior. The accessibility applies to all devices in +the context associated with this instance of `physical_mem` from which the +physical memory is reachable. The returned pointer is equivalent to `reinterpret_cast(ptr)`. @@ -351,7 +353,8 @@ Changes the access mode of a mapped virtual memory range specified by `ptr` and If `mode` is `address_access_mode::read` or `address_access_mode::read_write` `ptr` pointer is accessible after the call as read-only or read-write respectively. Otherwise, it is considered inaccessible and accessing it will -result in undefined behavior. +result in undefined behavior. The accessibility applies to all devices in +`syclContext` from which the memory referenced by `ptr` is reachable. The virtual memory range specified by `ptr` and `numBytes` must be a sub-range of virtual memory ranges previously mapped to `physical_mem`. `ptr`