I\'m trying to optimize some matrix computations and I was wondering if it was possible to detect at compile-time if SSE/SSE2/AVX/AVX2/AVX-512/AVX-128-FMA/KCVI[1]
Take a look at archspec, a library which was built exactly for this purpose: https://github.com/archspec/archspec