Skip to content

Commit

Permalink
Fix generic build for ELPA
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Oct 1, 2022
1 parent b7650e8 commit 9368edd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/toolchain/scripts/stage5/install_elpa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ case "$with_elpa" in
done

# ELPA-2017xxxx enables AVX2 by default, switch off if machine doesn't support it.
AVX_flag=""
AVX512_flags=""
FMA_flag=""
SSE4_flag=""
config_flags="--disable-avx --disable-avx2 --disable-avx512 --disable-sse --disable-sse-assembly"
if [ "${TARGET_CPU}" = "native" ]; then
AVX_flag=""
AVX512_flags=""
FMA_flag=""
SSE4_flag=""
config_flags="--disable-avx --disable-avx2 --disable-avx512 --disable-sse --disable-sse-assembly"
if [ -f /proc/cpuinfo ] && [ "${OPENBLAS_ARCH}" = "x86_64" ]; then
has_AVX=$(grep '\bavx\b' /proc/cpuinfo 1> /dev/null && echo 'yes' || echo 'no')
[ "${has_AVX}" = "yes" ] && AVX_flag="-mavx" || AVX_flag=""
Expand Down

0 comments on commit 9368edd

Please sign in to comment.