logoalt Hacker News

ozgrakkurttoday at 5:46 AM1 replyview on HN

Why detect avx512 in build system instead of using #ifdef ?


Replies

ozgrakkurttoday at 9:54 AM

It actually does detect it using ifdef [0] but uses cmake stuff to avoid passing "-mavx512" kind of flags to the compiler [1].

[0] https://github.com/esutcu/planb-lpm/blob/748d19d5fbd945cefa3...

[1] https://github.com/esutcu/planb-lpm/blob/748d19d5fbd945cefa3...