Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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....

There are also several AVX-512 kernels for different CPU generations, so it’s obviously longer than just checking for AVX.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: