From 3bd2bd292bd3b249892b63f6342d1ca559c37391 Mon Sep 17 00:00:00 2001 From: David Addison Date: Tue, 22 Nov 2022 11:16:47 -0800 Subject: [PATCH] Add fflush(stdout) before perf output --- src/common.cu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common.cu b/src/common.cu index 5837ed1bcd..41d747905b 100644 --- a/src/common.cu +++ b/src/common.cu @@ -969,6 +969,8 @@ testResult_t run() { errors[t] = bw_count[t] = 0; } + fflush(stdout); + const char* timeStr = report_cputime ? "cputime" : "time"; PRINT("#\n"); PRINT("# %10s %12s %8s %6s %6s out-of-place in-place \n", "", "", "", "", "");