parsec icon indicating copy to clipboard operation
parsec copied to clipboard

reenable detection of AVX capabilities even if compiler would not generate vector code

Open abouteiller opened this issue 1 year ago • 2 comments

Reenable detection of AVX capabilities even if compiler would not generate vectorized AVX code (because libraries like mkl can still use it). With the current status, the AVX availability on the CPU is never detected because we don't pass the necessary -march=xyz that enables AVX instruction generation.

@bosilca you made the opposite change some time ago, and I have vague recollection that there were issues with compiling the builtin checks without the ifdefs on some systems?

abouteiller avatar May 17 '24 02:05 abouteiller

The check for AVX512 was generating instructions that did not exists in some older architectures.

We can't assume what hardware capabilities the libraries we call can handle, this check should be related to what the runtime can handle.

bosilca avatar May 17 '24 15:05 bosilca

I see, that makes the builtin test pretty useless overall.

abouteiller avatar May 17 '24 16:05 abouteiller