We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5b9fa2 commit 6fa9173Copy full SHA for 6fa9173
sycl/doc/syclgraph/SYCLGraphUsageGuide.md
@@ -505,7 +505,9 @@ parameters in a node can be updated.
505
```cpp
506
size_t n = 1024;
507
queue Queue{};
508
-exp_ext::command_graph Graph{Queue.get_context(), Queue.get_device()};
+auto myContext = Queue.get_context();
509
+auto myDevice = Queue.get_device();
510
+exp_ext::command_graph Graph{myContext, myDevice};
511
512
int *PtrA = malloc_device<int>(n, Queue);
513
int *PtrB = malloc_device<int>(n, Queue);
0 commit comments