We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e65366 commit 092247cCopy full SHA for 092247c
DirectProgramming/C++SYCL_FPGA/Tutorials/DesignPatterns/buffered_host_streaming/src/HostStreamer.hpp
@@ -261,7 +261,7 @@ class HostStreamer {
261
// 2) the user has requested us to flush the launch queue and the
262
// launch queue is not empty (i.e. flush_ && launch_q_.size() != 0)
263
if ((launch_q_.Size() >= wait_threshold_) ||
264
- (flush_ && !LaunchQueueEmpty())) {
+ (flush_ && !LaunchQueueEmpty() && ProducerQueueEmpty() && ConsumerQueueEmpty())) {
265
// grab the oldest request from the launch queue
266
size_t buf_idx;
267
size_t count;
0 commit comments