]> git.djapps.eu Git - pkg/ggml/sources/whisper.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)
committerGeorgi Gerganov <redacted>
Fri, 12 Dec 2025 15:53:24 +0000 (17:53 +0200)
commita2886fba48e39ad7569d9a64fc830127c763a7a3
treef615adf367b82d43b80957b819c7935ded530d17
parentcd9b8c6d1889ff8d40c201cd3eeec1a2c1dc5f8d
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
ggml/src/ggml-cpu/ggml-cpu.c