summaryrefslogtreecommitdiff
path: root/examples/batched-bench/batched-bench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/batched-bench/batched-bench.cpp')
-rw-r--r--examples/batched-bench/batched-bench.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/batched-bench/batched-bench.cpp b/examples/batched-bench/batched-bench.cpp
index 22bc93bc..19674dfd 100644
--- a/examples/batched-bench/batched-bench.cpp
+++ b/examples/batched-bench/batched-bench.cpp
@@ -138,6 +138,8 @@ int main(int argc, char ** argv) {
LOG_TEE("failed to decode the batch, n_batch = %d, ret = %d\n", n_batch, ret);
return false;
}
+
+ llama_synchronize(ctx);
}
return true;