File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1079,14 +1079,12 @@ class __SYCL_EXPORT queue {
1079
1079
event ext_oneapi_graph (ext::oneapi::experimental::command_graph<
1080
1080
ext::oneapi::experimental::graph_state::executable>
1081
1081
Graph,
1082
- event DepEvent) {
1083
- const detail::code_location CodeLoc = {};
1082
+ event DepEvent _CODELOCPARAM (&CodeLoc)) {
1084
1083
return submit (
1085
1084
[&](handler &CGH) {
1086
1085
CGH.depends_on (DepEvent);
1087
1086
CGH.ext_oneapi_graph (Graph);
1088
- },
1089
- CodeLoc);
1087
+ } _CODELOCFW (CodeLoc));
1090
1088
}
1091
1089
1092
1090
// / Shortcut for executing a graph of commands.
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ namespace oneapi {
22
22
namespace experimental {
23
23
namespace detail {
24
24
25
- void graph_impl::exec (sycl::detail::queue_ptr q) {
25
+ void graph_impl::exec (const sycl::detail::queue_ptr & q) {
26
26
if (MSchedule.empty ()) {
27
27
for (auto n : MRoots) {
28
28
n->topology_sort (MSchedule);
@@ -32,7 +32,7 @@ void graph_impl::exec(sycl::detail::queue_ptr q) {
32
32
n->exec (q);
33
33
}
34
34
35
- void graph_impl::exec_and_wait (sycl::detail::queue_ptr q) {
35
+ void graph_impl::exec_and_wait (const sycl::detail::queue_ptr & q) {
36
36
bool isSubGraph = q->getIsGraphSubmitting ();
37
37
if (!isSubGraph) {
38
38
q->setIsGraphSubmitting (true );
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ struct graph_impl {
86
86
87
87
graph_ptr MParent;
88
88
89
- void exec (sycl::detail::queue_ptr q);
90
- void exec_and_wait (sycl::detail::queue_ptr q);
89
+ void exec (const sycl::detail::queue_ptr & q);
90
+ void exec_and_wait (const sycl::detail::queue_ptr & q);
91
91
92
92
void add_root (node_ptr n);
93
93
void remove_root (node_ptr n);
You can’t perform that action at this time.
0 commit comments