]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
test-backend-ops : extend test case filtering (llama/14865)
authorLeonard Mosescu <redacted>
Mon, 28 Jul 2025 16:04:27 +0000 (09:04 -0700)
committerGeorgi Gerganov <redacted>
Sat, 2 Aug 2025 14:51:21 +0000 (17:51 +0300)
commitdad0fcb1d2884350fc44cad7170746fbc8800f83
treeb6ba6543326324411747b517ebec00054b279169
parentfd1a2f3cab54c5630516d05e4c1a1933d218d257
test-backend-ops : extend test case filtering (llama/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