diff --git a/O/OpenBLAS/OpenBLAS@0.3.5/build_tarballs.jl b/O/OpenBLAS/OpenBLAS@0.3.5/build_tarballs.jl index e54b28e1737..2047426b8da 100644 --- a/O/OpenBLAS/OpenBLAS@0.3.5/build_tarballs.jl +++ b/O/OpenBLAS/OpenBLAS@0.3.5/build_tarballs.jl @@ -12,5 +12,5 @@ platforms = openblas_platforms() products = openblas_products() dependencies = [] -# Build the tarballs, and possibly a `build.jl` as well. +# Build the tarballs build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version=v"6") diff --git a/O/OpenBLAS/OpenBLAS@0.3.5/bundled/patches/openblas-ofast-power.patch b/O/OpenBLAS/OpenBLAS@0.3.5/bundled/patches/openblas-ofast-power.patch new file mode 100644 index 00000000000..2805782a043 --- /dev/null +++ b/O/OpenBLAS/OpenBLAS@0.3.5/bundled/patches/openblas-ofast-power.patch @@ -0,0 +1,17 @@ +diff --git a/Makefile.power b/Makefile.power +index a49372ad..6132495e 100644 +--- a/Makefile.power ++++ b/Makefile.power +@@ -13,10 +13,10 @@ endif + + ifeq ($(CORE), POWER8) + ifeq ($(USE_OPENMP), 1) +-COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp ++COMMON_OPT += -mcpu=power8 -mtune=power8 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp + FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp + else +-COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -fno-fast-math ++COMMON_OPT += -mcpu=power8 -mtune=power8 -mvsx -malign-power -fno-fast-math + FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math + endif + endif diff --git a/O/OpenBLAS/OpenBLAS@0.3.7/build_tarballs.jl b/O/OpenBLAS/OpenBLAS@0.3.7/build_tarballs.jl index 8766e71c827..a2dd966f613 100644 --- a/O/OpenBLAS/OpenBLAS@0.3.7/build_tarballs.jl +++ b/O/OpenBLAS/OpenBLAS@0.3.7/build_tarballs.jl @@ -12,6 +12,6 @@ platforms = openblas_platforms() products = openblas_products() dependencies = [] -# Build the tarballs, and possibly a `build.jl` as well. +# Build the tarballs build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version=v"6") diff --git a/O/OpenBLAS/OpenBLAS@0.3.7/bundled/patches/openblas-ofast-power.patch b/O/OpenBLAS/OpenBLAS@0.3.7/bundled/patches/openblas-ofast-power.patch new file mode 100644 index 00000000000..a7ce743e902 --- /dev/null +++ b/O/OpenBLAS/OpenBLAS@0.3.7/bundled/patches/openblas-ofast-power.patch @@ -0,0 +1,29 @@ +diff --git a/Makefile.power b/Makefile.power +index 24d8aa8a..e53a243a 100644 +--- a/Makefile.power ++++ b/Makefile.power +@@ -11,20 +11,20 @@ endif + + ifeq ($(CORE), POWER9) + ifeq ($(USE_OPENMP), 1) +-COMMON_OPT += -Ofast -mcpu=power9 -mtune=power9 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp ++COMMON_OPT += -mcpu=power9 -mtune=power9 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp + FCOMMON_OPT += -O2 -frecursive -mcpu=power9 -mtune=power9 -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp + else +-COMMON_OPT += -Ofast -mcpu=power9 -mtune=power9 -mvsx -malign-power -fno-fast-math ++COMMON_OPT += -mcpu=power9 -mtune=power9 -mvsx -malign-power -fno-fast-math + FCOMMON_OPT += -O2 -frecursive -mcpu=power9 -mtune=power9 -malign-power -fno-fast-math + endif + endif + + ifeq ($(CORE), POWER8) + ifeq ($(USE_OPENMP), 1) +-COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp ++COMMON_OPT += -mcpu=power8 -mtune=power8 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp + FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp + else +-COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -fno-fast-math ++COMMON_OPT += -mcpu=power8 -mtune=power8 -mvsx -malign-power -fno-fast-math + FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math + endif + endif diff --git a/O/OpenBLAS/common.jl b/O/OpenBLAS/common.jl index c31d4514de2..43982ab6610 100644 --- a/O/OpenBLAS/common.jl +++ b/O/OpenBLAS/common.jl @@ -74,9 +74,9 @@ function openblas_script(;kwargs...) # libgfortran and other friends alongside, we need an RPATH of '$ORIGIN', # so set it here. if [[ ${target} == *linux* ]] || [[ ${target} == *freebsd* ]]; then - LDFLAGS="${LDFLAGS} '-Wl,-rpath,\$\$ORIGIN' -Wl,-z,origin" + export LDFLAGS="${LDFLAGS} '-Wl,-rpath,\$\$ORIGIN' -Wl,-z,origin" elif [[ ${target} == *apple* ]]; then - LDFLAGS="${LDFLAGS} -Wl,-rpath,@loader_path/" + export LDFLAGS="${LDFLAGS} -Wl,-rpath,@loader_path/" fi