Skip to content

Commit 2642240

Browse files
committed
[mlir] Add explicit call to flush
ClangTidy performance suggested to use '\n' instead of std::endl, but it seems the flushing behavior was intended here (tests started failing).
1 parent ca20c99 commit 2642240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/ExecutionEngine/RunnerUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void printMemRef(const DynamicMemRefType<T> &m) {
224224
m.sizes, m.strides);
225225
if (m.rank == 0)
226226
std::cout << "]";
227-
std::cout << '\n';
227+
std::cout << '\n' << std::flush;
228228
}
229229

230230
template <typename T, int N>

0 commit comments

Comments
 (0)