From 329f43caf4e04d1c6ba14b6e3d20e16f370d0a10 Mon Sep 17 00:00:00 2001 From: Pablo Gonzalez Date: Wed, 15 Jan 2025 16:07:27 -0500 Subject: [PATCH] Fix reporting of samples per queries with equal issue mode --- loadgen/loadgen.cc | 2 +- loadgen/test_settings_internal.cc | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/loadgen/loadgen.cc b/loadgen/loadgen.cc index 85b69894e..42b2140de 100644 --- a/loadgen/loadgen.cc +++ b/loadgen/loadgen.cc @@ -421,7 +421,7 @@ std::vector GenerateQueries( } } - LogDetail([count = queries.size(), spq = settings.samples_per_query, + LogDetail([count = queries.size(), spq = samples_per_query, duration = timestamp.count()](AsyncDetail& detail) { #if USE_NEW_LOGGING_FORMAT MLPERF_LOG(detail, "generated_query_count", count); diff --git a/loadgen/test_settings_internal.cc b/loadgen/test_settings_internal.cc index ddc5cebff..5da0952f8 100644 --- a/loadgen/test_settings_internal.cc +++ b/loadgen/test_settings_internal.cc @@ -515,6 +515,12 @@ void TestSettingsInternal::LogSummary(AsyncSummary &summary) const { summary("performance_issue_same : ", performance_issue_same); summary("performance_issue_same_index : ", performance_issue_same_index); summary("performance_sample_count : ", performance_sample_count); + if (sample_concatenate_permutation){ + summary("WARNING: sample_concatenate_permutation was set to true. \n" + "Generated samples per query might be different as the one in the setting.\n" + "Check the generated_samples_per_query line in the detailed log for the real\n" + "samples_per_query value"); + } } } // namespace loadgen