]> git.djapps.eu Git - pkg/ggml/sources/ggml/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)
committerGeorgi Gerganov <redacted>
Thu, 11 Dec 2025 13:33:01 +0000 (15:33 +0200)
commitf2ff0f285d44d4e0b6c0e57b1e145c8fb5edb4d7
treecf80087ce24feee2303dc09d0c9b2d15def65a72
parent4767bda16156e02bfe0acebb29b42e5c1893b3df
Fix race conditions in threadpool when dealing with dynamic/frequent n_threads changes (llama/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
src/ggml-cpu/ggml-cpu.c