Skip to content

Commit

Permalink
[SYCL][Graph] Add graph query function
Browse files Browse the repository at this point in the history
  • Loading branch information
reble committed Jan 18, 2024
1 parent daa110a commit a22eb44
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sycl/doc/extensions/experimental/sycl_ext_oneapi_graph.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ public:
ext::oneapi::experimental::queue_state
ext_oneapi_get_state() const;
ext::oneapi::experimental::command_graph<graph_state::modifiable>
ext_oneapi_get_graph();
/* -- graph convenience shortcuts -- */
event ext_oneapi_graph(command_graph<graph_state::executable>& graph);
Expand Down Expand Up @@ -1019,6 +1022,22 @@ Returns: If the queue is in the default state where commands are scheduled
immediately for execution, `queue_state::executing` is returned. Otherwise,
`queue_state::recording` is returned where commands are redirected to a `command_graph`
object.
|
[source,c++]
----
command_graph<graph_state::modifiable>
queue::ext_oneapi_get_graph();
----

| Query the underlying command graph of a queue when recording.

Returns: A copy of the graph object, the queue is recording commands into.

Exceptions:

* Throws synchronously with error code `invalid` if the queue is not in `queue_state::recording`
state.

|
[source,c++]
----
Expand Down

0 comments on commit a22eb44

Please sign in to comment.