Skip to content

Commit e94cbd3

Browse files
authored
[SYCL] Fix sporadic auto_flush lit tests fail (#1195)
Signed-off-by: Igor Dubinov <igor.dubinov@intel.com>
1 parent 52e1c06 commit e94cbd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/source/detail/stream_impl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ void stream_impl::flush() {
4141
range<1>(BufferSize_), id<1>(OffsetSize));
4242

4343
printf("%s", HostAcc.get_pointer());
44+
fflush(stdout);
4445
}
4546
} // namespace detail
4647
} // namespace sycl

0 commit comments

Comments
 (0)