CPU SIMD lanes detection


#1

I try the SIMD extension of ‘nightly build’, and I want to detect, how many lanes can handle the target processor? (e.g: SSE/NEON, AVX, AVX512)

Can I detect this?
a.) compile time
b.) runtime