Commit 4b980d0
[SYCL][Graph] Throw exception when explicit add called on a graph recording a queue (#283)
Factorizes the exception throwing method when the explicit API is used on a graph recording a queue
Improves the test while_recording to test throwing an invalid exception for the two explicit graph:add entry points.
Addresses issue #271
* Update sycl/source/detail/graph_impl.hpp
Co-authored-by: Ben Tracy <[email protected]>
* Update sycl/test-e2e/Graph/Explicit/while_recording.cpp
Co-authored-by: Ben Tracy <[email protected]>
* Update sycl/source/detail/graph_impl.hpp
Co-authored-by: Ewan Crawford <[email protected]>
---------
Co-authored-by: Ben Tracy <[email protected]>
Co-authored-by: Ewan Crawford <[email protected]>1 parent 99e6944 commit 4b980d0
File tree
3 files changed
+25
-9
lines changed- sycl
- source/detail
- test-e2e/Graph/Explicit
3 files changed
+25
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 308 | + | |
313 | 309 | | |
314 | 310 | | |
315 | 311 | | |
| |||
610 | 606 | | |
611 | 607 | | |
612 | 608 | | |
| 609 | + | |
613 | 610 | | |
614 | 611 | | |
615 | 612 | | |
| |||
621 | 618 | | |
622 | 619 | | |
623 | 620 | | |
| 621 | + | |
624 | 622 | | |
625 | 623 | | |
626 | 624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
346 | 358 | | |
347 | 359 | | |
348 | 360 | | |
| |||
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| |||
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| 30 | + | |
33 | 31 | | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
0 commit comments