From f84d49183971fe8ab84e0a7414ae0d94f9454268 Mon Sep 17 00:00:00 2001 From: lrpablo <155004933+lrpablo@users.noreply.github.com> Date: Tue, 24 Sep 2024 18:12:00 +0100 Subject: [PATCH] [SYCL][GRAPHS][DOCS] Updated the example so it compiles. (#15477) There was a small problem with the dot product example that did not allow for correct compilation. --- sycl/doc/syclgraph/SYCLGraphUsageGuide.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sycl/doc/syclgraph/SYCLGraphUsageGuide.md b/sycl/doc/syclgraph/SYCLGraphUsageGuide.md index bfd50fb677721..f51d441174ef6 100644 --- a/sycl/doc/syclgraph/SYCLGraphUsageGuide.md +++ b/sycl/doc/syclgraph/SYCLGraphUsageGuide.md @@ -186,6 +186,7 @@ This example uses the explicit graph creation API to perform a dot product operation. ```c++ +#include #include int main() { @@ -240,7 +241,7 @@ int main() { [&](sycl::handler& h) { h.single_task([=]() { for(size_t i = 0; i < n; i++){ - dotp += x[i] * z[i]; + *dotp += x[i] * z[i]; } }); },