From: helanfxz Date: Sat, 25 Jul 2026 08:23:31 +0000 (+0800) Subject: tests: synchronize save-load-state generation (#26056) X-Git-Tag: upstream/0.0.10438~316 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d67c0b4107112e4790774c3a8169e2e3eb24643b;p=pkg%2Fggml%2Fsources%2Fllama.cpp tests: synchronize save-load-state generation (#26056) --- diff --git a/tests/test-save-load-state.cpp b/tests/test-save-load-state.cpp index 6e93ce6fb..bbb025617 100644 --- a/tests/test-save-load-state.cpp +++ b/tests/test-save-load-state.cpp @@ -44,6 +44,8 @@ static llama_tokens generate_tokens(llama_context * ctx, llama_sampler * smpl, i n_past++; } + llama_synchronize(ctx); + return result; }