From ae5e5181aaa4a4f8587086bea262c3db4c3a9ba6 Mon Sep 17 00:00:00 2001 From: zjing14 Date: Tue, 28 Nov 2023 14:18:42 -0600 Subject: [PATCH] recover default niter (#1064) --- include/ck/stream_config.hpp | 4 ++-- profiler/include/profiler/profile_gemm_impl.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ck/stream_config.hpp b/include/ck/stream_config.hpp index 1681b223f3..e6a6808244 100644 --- a/include/ck/stream_config.hpp +++ b/include/ck/stream_config.hpp @@ -11,6 +11,6 @@ struct StreamConfig hipStream_t stream_id_ = nullptr; bool time_kernel_ = false; int log_level_ = 0; - int cold_niters_ = 50; - int nrepeat_ = 200; + int cold_niters_ = 1; + int nrepeat_ = 10; }; diff --git a/profiler/include/profiler/profile_gemm_impl.hpp b/profiler/include/profiler/profile_gemm_impl.hpp index 99f0ca9e94..08416d0146 100644 --- a/profiler/include/profiler/profile_gemm_impl.hpp +++ b/profiler/include/profiler/profile_gemm_impl.hpp @@ -166,7 +166,7 @@ int profile_gemm_impl(int do_verification, std::string op_name = op_ptr->GetTypeString(); float avg_time = - invoker_ptr->Run(argument_ptr.get(), StreamConfig{nullptr, time_kernel}); + invoker_ptr->Run(argument_ptr.get(), StreamConfig{nullptr, time_kernel, 0, 10, 50}); std::size_t flop = std::size_t(2) * M * N * K;