From 7b2e2a0c84b8ec32dbb871556c1fe98d4d2d3a4b Mon Sep 17 00:00:00 2001 From: Ben Tracy Date: Thu, 27 Jun 2024 16:16:46 +0100 Subject: [PATCH] Fix rendering, minor wording changes - Disallow host_task events in dynamic_events --- .../sycl_ext_oneapi_graph.asciidoc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/sycl/doc/extensions/experimental/sycl_ext_oneapi_graph.asciidoc b/sycl/doc/extensions/experimental/sycl_ext_oneapi_graph.asciidoc index 6314480f8cfe..0964082582d2 100644 --- a/sycl/doc/extensions/experimental/sycl_ext_oneapi_graph.asciidoc +++ b/sycl/doc/extensions/experimental/sycl_ext_oneapi_graph.asciidoc @@ -1726,8 +1726,8 @@ Exceptions: * Throws synchronously with error code `invalid` if this function is called from a normal SYCL command-group submission. -* Throws synchronously with error code `invalid` if any of the `sycl::event`s -associated with `depEvents` came from the same graph that the graph node +* Throws synchronously with error code `invalid` if any of the `sycl::event` +objects associated with `depEvents` came from the same graph that the graph node resulting from this command-group submission is associated with. |=== @@ -1806,14 +1806,20 @@ Parameters: * `syclEvent` - The SYCL event to associate this `dynamic_event` with. +Exceptions: + + +* Throws synchronously with error code `invalid` if `syclEvent` is an event +returned from enqueuing a `host_task`. + | [source,c++] ---- void update(const event& syclEvent); ---- -| Updates the SYCL event associated with `dynamic_event`. This update will be -reflected immediately in the associated modifiable graph nodes. An executable +| Updates the SYCL event associated with this `dynamic_event`. This update will +be reflected immediately in the associated modifiable graph nodes. An executable graph can then be updated to reflect these new event dependencies using <>. @@ -1825,7 +1831,10 @@ Exceptions: * Throws synchronously with error code `invalid` if `syclEvent` is an event obtained from a queue submission which was recorded to the same graph any of the -`node`s associated with this `dynamic_event` are from. +`node` objects associated with this `dynamic_event` are from. + +* Throws synchronously with error code `invalid` if `syclEvent` is an event +returned from enqueuing a `host_task`. |===