Skip to content

Commit 6fa9173

Browse files
Bensuoreble
andauthored
Update sycl/doc/syclgraph/SYCLGraphUsageGuide.md
Co-authored-by: Pablo Reble <[email protected]>
1 parent c5b9fa2 commit 6fa9173

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/doc/syclgraph/SYCLGraphUsageGuide.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,9 @@ parameters in a node can be updated.
505505
```cpp
506506
size_t n = 1024;
507507
queue Queue{};
508-
exp_ext::command_graph Graph{Queue.get_context(), Queue.get_device()};
508+
auto myContext = Queue.get_context();
509+
auto myDevice = Queue.get_device();
510+
exp_ext::command_graph Graph{myContext, myDevice};
509511
510512
int *PtrA = malloc_device<int>(n, Queue);
511513
int *PtrB = malloc_device<int>(n, Queue)​;

0 commit comments

Comments
 (0)