Closed
Description
When running cmake
the default configuration sets AVX2 to be ON even when the current cpu does not support it.
AVX vs AVX2 is handled correctly in the plain makefile.
For cmake, the AVX2 has to be turned off via cmake -DLLAMA_AVX2=off .
for the compiled binary to work on AVX-only system.
Can we make the cmake file smarter about whether to enable or disable AVX2 by looking at the current architecture?