Using hwcaps instead of simde dispatcher scripts?
Nilesh Patra <[email protected]> Sat, 26 Jul 2025 23:02:00 +0530
| Newsgroups | gmane.linux.debian.devel.medical |
|---|---|
| Message-ID | <[email protected]> |
Hi Michael, I recently came across Christian's blog[1] (thanks for this!) where they use hwcaps[2] to select the appropriate cpu capabilities for ggml package[3]. This is similar to what we do when we add simde patches to a package and build for all ISAs starting from baseline SSE2 until AVX2 (or even AVX512), and we end up writing a home-grown script like this [4] to select appropriate cpu capabilities. Do you think we can get rid of these scripts going forward and instead use hwcaps? [1] https://www.kvr.at/posts/easy-dynamic-dispatch-using-GLIBC-hardware-capabilities/ [2] https://manpages.debian.org/unstable/manpages/ld.so.8.en.html#x86~2 [3] https://salsa.debian.org/deeplearning-team/ggml/-/commit/5768f4319d8b547fffb027c78e6dea4453a1e3c9 [4] https://salsa.debian.org/med-team/scrappie/-/blob/master/debian/bin/simd-dispatch?ref_type=heads Best, Nilesh