2 ms·
Why detect avx512 in build system instead of using #ifdef ?
by ozgrakkurt 6mo ago
Why detect avx512 in build system instead of using #ifdef ?
- ozgrakkurt 6mo agoIt 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/748d19d5fbd945cefa3c2b31c3c0f55c50858989/include/lpm6.hpp#L22 https://github.com/esutcu/planb-lpm/blob/748d19d5fbd945cefa3... [1] https://github.com/esutcu/planb-lpm/blob/748d19d5fbd945cefa3c2b31c3c0f55c50858989/CMakeLists.txt#L15 https://github.com/esutcu/planb-lpm/blob/748d19d5fbd945cefa3...