@@ -1521,7 +1521,7 @@ int main(int argc, char ** argv) {
15211521 for (const auto & inst : params_instances) {
15221522 params_idx++;
15231523 if (params.progress ) {
1524- fprintf (stderr, " llama-bench: benchmark %d/%ld : starting\n " , params_idx, params_count);
1524+ fprintf (stderr, " llama-bench: benchmark %d/%zu : starting\n " , params_idx, params_count);
15251525 }
15261526 // keep the same model between tests when possible
15271527 if (!lmodel || !prev_inst || !inst.equal_mparams (*prev_inst)) {
@@ -1573,14 +1573,14 @@ int main(int argc, char ** argv) {
15731573 // warmup run
15741574 if (t.n_prompt > 0 ) {
15751575 if (params.progress ) {
1576- fprintf (stderr, " llama-bench: benchmark %d/%ld : warmup prompt run\n " , params_idx, params_count);
1576+ fprintf (stderr, " llama-bench: benchmark %d/%zu : warmup prompt run\n " , params_idx, params_count);
15771577 }
15781578 // test_prompt(ctx, std::min(t.n_batch, std::min(t.n_prompt, 32)), 0, t.n_batch, t.n_threads);
15791579 test_prompt (ctx, t.n_prompt , t.n_batch , t.n_threads );
15801580 }
15811581 if (t.n_gen > 0 ) {
15821582 if (params.progress ) {
1583- fprintf (stderr, " llama-bench: benchmark %d/%ld : warmup generation run\n " , params_idx, params_count);
1583+ fprintf (stderr, " llama-bench: benchmark %d/%zu : warmup generation run\n " , params_idx, params_count);
15841584 }
15851585 test_gen (ctx, 1 , t.n_threads );
15861586 }
@@ -1592,14 +1592,14 @@ int main(int argc, char ** argv) {
15921592
15931593 if (t.n_prompt > 0 ) {
15941594 if (params.progress ) {
1595- fprintf (stderr, " llama-bench: benchmark %d/%ld : prompt run %d/%d\n " , params_idx, params_count,
1595+ fprintf (stderr, " llama-bench: benchmark %d/%zu : prompt run %d/%d\n " , params_idx, params_count,
15961596 i + 1 , params.reps );
15971597 }
15981598 test_prompt (ctx, t.n_prompt , t.n_batch , t.n_threads );
15991599 }
16001600 if (t.n_gen > 0 ) {
16011601 if (params.progress ) {
1602- fprintf (stderr, " llama-bench: benchmark %d/%ld : generation run %d/%d\n " , params_idx, params_count,
1602+ fprintf (stderr, " llama-bench: benchmark %d/%zu : generation run %d/%d\n " , params_idx, params_count,
16031603 i + 1 , params.reps );
16041604 }
16051605 test_gen (ctx, t.n_gen , t.n_threads );
0 commit comments