Skip to content

Commit

Permalink
Dodge AVX-512 problems with OpenBLAS on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jan 2, 2019
1 parent 92de9f2 commit 2b1576a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OpenBLAS/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ elif [[ ${target} == powerpc64le-* ]]; then
flags+=(TARGET=POWER8)
fi
# If we're building for x86_64 Windows gcc7+, we need to disable usage of
# certain AVX-512 registers (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782)
if [[ ${target} == x86_64-w64-mingw32 ]] && [[ $(gcc --version | head -1 | awk '{ print $3 }') =~ (7|8).* ]]; then
CFLAGS="${CFLAGS} -fno-asynchronous-unwind-tables"
fi
# Enter the fun zone
cd ${WORKSPACE}/srcdir/OpenBLAS-*/
Expand Down

0 comments on commit 2b1576a

Please sign in to comment.