Commit 8fd3b0a
authored
FPGA: Worked around runtime bug with event dependences between invocations of the same kernel (#2361)
This change implements a workaround for a bug affecting FPGA targets. The bug and workaround will be documented in the upcoming 2024.2 release notes. This workaround can be removed when the underlying bug is fixed (presumably in 2025.0).
Specifically, when kernels are explicitly made dependent on other invocations of the same kernel through events, the FPGA runtime can occasionally hang. The hang is rare, but since the gzip_ll code sample attempts to enqueue kernels in this way hundreds of times it has a good chance of hitting it on any given run.
Unfortunately, this code sample seems to be affected by a second, unrelated hang though because while this fix allows the program to complete some of the time, it still hangs periodically. Runtime traces of those remaining hangs indicate that they are a different issue. I still think it's worth submitting this as it reduces the frequency with which the design hangs.1 parent 5f891ad commit 8fd3b0a
File tree
1 file changed
+21
-9
lines changed- DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/gzip/src
1 file changed
+21
-9
lines changedLines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
786 | | - | |
787 | | - | |
788 | | - | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
789 | 793 | | |
790 | 794 | | |
791 | 795 | | |
| |||
2073 | 2077 | | |
2074 | 2078 | | |
2075 | 2079 | | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
2079 | 2087 | | |
2080 | 2088 | | |
2081 | 2089 | | |
| |||
2445 | 2453 | | |
2446 | 2454 | | |
2447 | 2455 | | |
2448 | | - | |
2449 | | - | |
2450 | | - | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
2451 | 2463 | | |
2452 | 2464 | | |
2453 | 2465 | | |
| |||
0 commit comments