]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Fix race conditions in threadpool when dealing with dynamic/frequent n_threads change...
authorMax Krasnyansky <redacted>
Wed, 10 Dec 2025 20:32:23 +0000 (12:32 -0800)
committerGitHub <redacted>
Wed, 10 Dec 2025 20:32:23 +0000 (12:32 -0800)
commite1f4921980444b30d3b4fa1c6e18cdecd85b0690
tree8977712896a79af131ddb5cfea649175053fc210
parent4dff236a522bd0ed949331d6cb1ee2a1b3615c35
Fix race conditions in threadpool when dealing with dynamic/frequent n_threads changes (#17748)

* tests: update barrier test to check for race condition in active threads

* cpu: combine n_graph and n_threads into a single atomic update

* tests: add multi-graph test for test_barrier
ggml/src/ggml-cpu/ggml-cpu.c
tests/test-barrier.cpp