You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an older x86_64 (Core 2 Duo) laptop that lacks the popcnt instruction. The check in CMakeLists.txt erroneously adds -mpopcnt to its compiler flags, and that eventually causes Illegal Instruction (SIGILL) crashes.
IIRC popcnt can be detected at runtime, and certainly at build time with a compile/run test. But it may be simpler these days to just trust that most people have -march=native in their CXXFLAGS when compiling locally.
The text was updated successfully, but these errors were encountered:
I have an older x86_64 (Core 2 Duo) laptop that lacks the popcnt instruction. The check in
CMakeLists.txt
erroneously adds-mpopcnt
to its compiler flags, and that eventually causes Illegal Instruction (SIGILL) crashes.IIRC popcnt can be detected at runtime, and certainly at build time with a compile/run test. But it may be simpler these days to just trust that most people have
-march=native
in their CXXFLAGS when compiling locally.The text was updated successfully, but these errors were encountered: