Skip to content

Commit 3edbf37

Browse files
authored
FPGA: Update invocation interfaces document (#2359)
Update the race condition note following #2345
1 parent 6684fb1 commit 3edbf37

File tree

1 file changed

+1
-1
lines changed
  • DirectProgramming/C++SYCL_FPGA/Tutorials/Features/hls_flow_interfaces/invocation_interfaces

1 file changed

+1
-1
lines changed

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/hls_flow_interfaces/invocation_interfaces/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ q.wait();
192192

193193
> **Note**: As per the SYCL language semantics, separate invocations of a kernel are **independent**. This means that you can't make assumptions about memory ordering or memory dependences between kernel invocations. Make sure you use synchronization mechanisms such as the `.wait()` function or *atomic operations* to avoid race conditions. \
194194
If you want to guarantee sequential equivalence, you can also write your kernel with a `while(1)` loop in the kernel body instead of using a pipelined kernel. \
195-
In particular, a repeatedly-invoked kernel with memory dependence will result in undefined behavior in SYCL and may not function as you expect.
195+
In particular, a repeatedly-invoked kernel with a memory dependence will result in undefined behavior in SYCL and may not function as you expect.
196196
197197
For an example of a pipelined streaming kernel, see `src/stream_pipelined.cpp`.
198198

0 commit comments

Comments
 (0)