Add CMakePresets for target micro arch#1348
Conversation
|
I really like your approach and will eagerly merge it once it validates \o/ |
|
I've only kept the micro architecture target in I have ongoing work to actually do the same as these presets at the CMake level, with a function that can be made available to users to help in the tooling for dynamic dispatch (our current solution in Arrow is very verbose).
|
a7e66a6 to
d87c148
Compare
|
@serge-sans-paille this is in a ready state, but I am not fully happy with it. Getting into AVX512, and AVX512-256, the combinatorial explosion of possibilities start to show again. This reinforce my belief that I should keep on with the work to do it in CMake (that could also be installed for our users to improve our dynamic dispatch tooling), and also homogenized with the test This PR is not completely worthless though. For example we now have the possibility to really test with What do you think? Should we give this some mileage before I get the time to work on a CMake solution? |
I've taken the direction of explicit flags such as
-mavx -mno-avx2.This is IMHO less error prone and more accurate that using architecture name such as
haswell.The main difference is that this does not add other feature flags or change the
-mtunemodel.For a test setting accuracy is more important IMHO.