Skip to content

Commit

Permalink
Update sycl/doc/syclgraph/SYCLGraphUsageGuide.md
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo Reble <[email protected]>
  • Loading branch information
Bensuo and reble authored Oct 30, 2024
1 parent c5b9fa2 commit 6fa9173
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sycl/doc/syclgraph/SYCLGraphUsageGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,9 @@ parameters in a node can be updated.
```cpp
size_t n = 1024;
queue Queue{};
exp_ext::command_graph Graph{Queue.get_context(), Queue.get_device()};
auto myContext = Queue.get_context();
auto myDevice = Queue.get_device();
exp_ext::command_graph Graph{myContext, myDevice};
int *PtrA = malloc_device<int>(n, Queue);
int *PtrB = malloc_device<int>(n, Queue)​;
Expand Down

0 comments on commit 6fa9173

Please sign in to comment.