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

The compiler would need to know what other programs are running on the core, or the computer (depending on CPU/instructions). It has no hope!

This is why it is advisable for SIMD libraries or libraries that use SIMD to always offer some levers for this kind of thing.

This makes it a pain as you may have to write the same function 2 or 3 times in different SIMD instruction sets, or use a library to do that for you:

https://github.com/jackmott/simdeez



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

Search: