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]; } }); },