]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
tests : synchronize contexts at end of test-thread-safety (#24935)
authorChristopher Albert <redacted>
Thu, 25 Jun 2026 06:22:51 +0000 (08:22 +0200)
committerGitHub <redacted>
Thu, 25 Jun 2026 06:22:51 +0000 (09:22 +0300)
Assisted-by: Claude
tests/test-thread-safety.cpp

index acda4aa81eaba92e00ca4edd1774c3d55e48e576..d0b5946e2c8aedfb0fe5871653b4d039616b1897 100644 (file)
@@ -146,6 +146,8 @@ int main(int argc, char ** argv) {
                 }
 
                 LOG_INF("Model %d/%d, Context %d/%d: %s\n\n", m + 1, num_models, c + 1, num_contexts, result.c_str());
+
+                llama_synchronize(ctx.get());
             });
         }
     }