]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
tests: test-backend-ops -j <N> to run tests in parallel (#23637)
authorJeff Bolz <redacted>
Tue, 26 May 2026 04:57:56 +0000 (23:57 -0500)
committerGitHub <redacted>
Tue, 26 May 2026 04:57:56 +0000 (07:57 +0300)
commit7623de11d94ab84d29f784f845dab19608d52ce6
treec1843e54e87d6ae03aa2a1ca259dfc9eb51555da
parentc9d98295a3a371c5a9277b54be493ec74317b387
tests: test-backend-ops -j <N> to run tests in parallel (#23637)

Create a pool of N threads that grab a chunk of up to 100 tests at a time to
iterate through. The number of tests at a time decreases as fewer remain.

Each thread uses its own dev and cpu backend, and set_n_threads_fn is not
called on the cpu backend.

Fix some TSAN issues that arose:
- In init_tensor_uniform, don't use static vector of generators.
- Replace gmtime with versions that don't use a global variable.
- Mutex calls to print_test_result.
tests/test-backend-ops.cpp