nit: print current pp & tg in llama-bench

This commit is contained in:
Han Yin 2025-05-06 13:58:21 -07:00
parent bbf0420bac
commit a4c66c4baf
1 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ Java_android_llama_cpp_LLamaAndroid_benchModel(JNIEnv *env, jobject /*unused*/,
int i, j; int i, j;
int nri; int nri;
for (nri = 0; nri < nr; nri++) { for (nri = 0; nri < nr; nri++) {
LOGi("Benchmark prompt processing (pp)"); LOGi("Benchmark prompt processing (pp = %d)", pp);
common_batch_clear(g_batch); common_batch_clear(g_batch);
@ -207,7 +207,7 @@ Java_android_llama_cpp_LLamaAndroid_benchModel(JNIEnv *env, jobject /*unused*/,
// bench text generation // bench text generation
LOGi("Benchmark text generation (tg)"); LOGi("Benchmark text generation (tg = %d)", tg);
llama_memory_clear(llama_get_memory(context), false); llama_memory_clear(llama_get_memory(context), false);
const auto t_tg_start = ggml_time_us(); const auto t_tg_start = ggml_time_us();