Skip to content

Commit

Permalink
Toolchain: fix avx512 detection in install_elpa.sh (check for avx512f…
Browse files Browse the repository at this point in the history
… instead of avx512) (#328)
  • Loading branch information
robertschade authored and hfp committed Apr 29, 2019
1 parent d51f2d2 commit a031503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/toolchain/scripts/install_elpa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ case "$with_elpa" in
[ "${has_AVX}" == "yes" ] && AVX_flag="-mavx" || AVX_flag=""
has_AVX2=`grep '\bavx2\b' /proc/cpuinfo 1>/dev/null && echo 'yes' || echo 'no'`
[ "${has_AVX2}" == "yes" ] && AVX_flag="-mavx2"
has_AVX512=`grep '\bavx512\b' /proc/cpuinfo 1>/dev/null && echo 'yes' || echo 'no'`
has_AVX512=`grep '\bavx512f\b' /proc/cpuinfo 1>/dev/null && echo 'yes' || echo 'no'`
FMA_flag=`grep '\bfma\b' /proc/cpuinfo 1>/dev/null && echo '-mfma' || echo '-mno-fma'`
SSE4_flag=`grep '\bsse4_1\b' /proc/cpuinfo 1>/dev/null && echo '-msse4' || echo '-mno-sse4'`
# non-threaded version
Expand Down

0 comments on commit a031503

Please sign in to comment.