From c1efabf9218e9a807945302ed0465728d76490b1 Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Wed, 15 Feb 2023 10:07:21 -0800 Subject: [PATCH] Clean up kernel launch output (#569) * clean up output from kernel_launch * set RUN_WARMUP to 0 by default * split the warm-up into a separate issue --------- Co-authored-by: zjing14 [ROCm/composable_kernel commit: 19490ac4f71735495bcdd080a2531d679c3573e9] --- include/ck/host_utility/kernel_launch.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/ck/host_utility/kernel_launch.hpp b/include/ck/host_utility/kernel_launch.hpp index ed6e2f0ba1..24f2121674 100644 --- a/include/ck/host_utility/kernel_launch.hpp +++ b/include/ck/host_utility/kernel_launch.hpp @@ -20,6 +20,7 @@ float launch_and_time_kernel(const StreamConfig& stream_config, #if CK_TIME_KERNEL if(stream_config.time_kernel_) { +#if DEBUG_LOG printf("%s: grid_dim {%d, %d, %d}, block_dim {%d, %d, %d} \n", __func__, grid_dim.x, @@ -29,15 +30,15 @@ float launch_and_time_kernel(const StreamConfig& stream_config, block_dim.y, block_dim.z); - const int nrepeat = 10; - printf("Warm up 1 time\n"); - +#endif // warm up kernel<<>>(args...); + const int nrepeat = 10; +#if DEBUG_LOG printf("Start running %d times...\n", nrepeat); - +#endif hipEvent_t start, stop; hip_check_error(hipEventCreate(&start));