Skip to content

LLM inference in C/C++

C++ ggml

tests : synchronize contexts at end of test-thread-safety (#24935)

Christopher Albertfdbd6abee20e
diff --git a/tests/test-thread-safety.cpp b/tests/test-thread-safety.cpp
index acda4aa81e..d0b5946e2c 100644
--- a/tests/test-thread-safety.cpp
+++ b/tests/test-thread-safety.cpp
@@ -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());
});
}
}