]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
test-backend-ops : extend test case filtering (#14865)
authorLeonard Mosescu <redacted>
Mon, 28 Jul 2025 16:04:27 +0000 (09:04 -0700)
committerGitHub <redacted>
Mon, 28 Jul 2025 16:04:27 +0000 (18:04 +0200)
commitbda62193b2a6bebbf515c3c389303094a44458c1
tree34fa3223b538ed715a6fcd8fe1d9ffae077a2840
parentc556418b600ad5792440942079d93e393595688b
test-backend-ops : extend test case filtering (#14865)

* Extend test case filtering

1. Allow passing multiple (comma-separated?) ops to test-backend-ops. This can be convenient when working on a set of ops, when you'd want to test them together (but without having to run every single op). For example:

`test-backend-ops.exe test -o "ADD,RMS_NORM,ROPE,SILU,SOFT_MAX"`

2. Support full test-case variation string in addition to basic op names. This would make it easy to select a single variation, either for testing or for benchmarking. It can be particularly useful for profiling a particular variation (ex. a CUDA kernel), for example:

`test-backend-ops.exe perf -b CUDA0 -o "MUL_MAT(type_a=f16,type_b=f32,m=4096,n=512,k=14336,bs=[1,1],nr=[1,1],per=[0,1,2,3],v=2)"`

These two can be combined. As the current `-o`, this change doesn't try to detect/report an error if an filter doesn't name existing ops (ex. misspelled)

* Updating the usage help text

* Update tests/test-backend-ops.cpp
tests/test-backend-ops.cpp