3 ms·
Here is the code I use to detect available CPU features at runtime and dispatch the correct kernels - https://github.com/ashvardanian/StringZilla/blob/main/c/li
by ashvardanian 2y ago
Here is the code I use to detect available CPU features at runtime and dispatch the correct kernels - https://github.com/ashvardanian/StringZilla/blob/main/c/lib.c https://github.com/ashvardanian/StringZilla/blob/main/c/lib....
There are also several AVX-512 kernels for different CPU generations, so it’s obviously longer than just checking for AVX.