Fix detection of AVX512 capable compilers in getarch
authorMichael Lass <michael.lass@uni-paderborn.de>
Fri, 3 May 2019 19:07:14 +0000 (21:07 +0200)
committerMichael Lass <michael.lass@uni-paderborn.de>
Wed, 5 Jun 2019 15:30:56 +0000 (17:30 +0200)
commit7a9a4dbc4fdd748747cd86ae685e760ae8cdc10f
tree1a25b2b981a970f5776ff1847b6bf55b5c0184f6
parent27649b95430cbed40923db4ab45119af6b05acb3
Fix detection of AVX512 capable compilers in getarch

21eda8b5 introduced a check in getarch.c to test if the compiler is capable of
AVX512. This check currently fails, since the used __AVX2__ macro is only
defined if getarch itself was compiled with AVX2/AVX512 support. Make sure this
is the case by building getarch with -march=native on x86_64. It is only
supposed to run on the build host anyway.
Makefile.system
cmake/system.cmake