From f078c79865f3b047bd6d8c4925bdef40d6cdff56 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 13 May 2025 07:55:30 +0300 Subject: [PATCH] batched-bench : fix pp batch contents --- tools/batched-bench/batched-bench.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/batched-bench/batched-bench.cpp b/tools/batched-bench/batched-bench.cpp index 0f4019293d581..119df471b25ee 100644 --- a/tools/batched-bench/batched-bench.cpp +++ b/tools/batched-bench/batched-bench.cpp @@ -123,8 +123,8 @@ int main(int argc, char ** argv) { common_batch_clear(batch); - for (int i = 0; i < pp; ++i) { - for (int j = 0; j < (is_pp_shared ? 1 : pl); ++j) { + for (int j = 0; j < (is_pp_shared ? 1 : pl); ++j) { + for (int i = 0; i < pp; ++i) { common_batch_add(batch, 0, i, { j }, false); } }