@@ -964,7 +964,7 @@ input data is set.
964964#include <sycl/ext/oneapi/experimental/graph.hpp>
965965
966966int main() {
967- using namespace sycl::ext::oneapi::experimental;
967+ namespace sycl_ext = sycl::ext::oneapi::experimental;
968968
969969 const size_t n = 10;
970970 float alpha = 1.0f;
@@ -973,7 +973,7 @@ int main() {
973973
974974 sycl::queue q;
975975
976- command_graph g;
976+ sycl_ext:: command_graph g;
977977
978978 float *x , *y, *z;
979979
@@ -1003,21 +1003,21 @@ int main() {
10031003 y[i] = 2.0f;
10041004 z[i] = 3.0f;
10051005 });
1006- }, { property::node::depends_on(node_x, node_y, node_z)});
1006+ }, { sycl_ext:: property::node::depends_on(node_x, node_y, node_z)});
10071007
10081008 auto node_a = g.add([&](sycl::handler &h) {
10091009 h.parallel_for(sycl::range<1>{n}, [=](sycl::id<1> it) {
10101010 const size_t i = it[0];
10111011 x[i] = alpha * x[i] + beta * y[i];
10121012 });
1013- }, { property::node::depends_on(node_i)});
1013+ }, { sycl_ext:: property::node::depends_on(node_i)});
10141014
10151015 auto node_b = g.add([&](sycl::handler &h) {
10161016 h.parallel_for(sycl::range<1>{n}, [=](sycl::id<1> it) {
10171017 const size_t i = it[0];
10181018 z[i] = gamma * z[i] + beta * y[i];
10191019 });
1020- }, { property::node::depends_on(node_i)});
1020+ }, { sycl_ext:: property::node::depends_on(node_i)});
10211021
10221022 auto node_c = g.add(
10231023 [&](sycl::handler &h) {
@@ -1028,10 +1028,10 @@ int main() {
10281028 sum += x[i] * z[i];
10291029 });
10301030 },
1031- { property::node::depends_on(node_a, node_b)});
1031+ { sycl_ext:: property::node::depends_on(node_a, node_b)});
10321032
1033- auto node_fx = g.add_free(x, {property::node::depends_on(node_c)});
1034- auto node_fy = g.add_free(y, {property::node::depends_on(node_b)});
1033+ auto node_fx = g.add_free(x, {sycl_ext:: property::node::depends_on(node_c)});
1034+ auto node_fy = g.add_free(y, {sycl_ext:: property::node::depends_on(node_b)});
10351035
10361036 auto exec = g.finalize(q.get_context());
10371037
0 commit comments