diff --git a/openblas-0.3.11-power10.patch b/openblas-0.3.11-power10.patch new file mode 100644 index 0000000..c53ece3 --- /dev/null +++ b/openblas-0.3.11-power10.patch @@ -0,0 +1,12 @@ +diff -up OpenBLAS-0.3.11/Makefile.power.override OpenBLAS-0.3.11/Makefile.power +--- OpenBLAS-0.3.11/Makefile.power.override 2020-10-17 22:14:12.000000000 +0200 ++++ OpenBLAS-0.3.11/Makefile.power 2020-10-19 16:12:10.351740456 +0200 +@@ -10,7 +10,7 @@ USE_OPENMP = 1 + endif + + ifeq ($(CORE), POWER10) +-COMMON_OPT += -Ofast -mcpu=power10 -mtune=power10 -mvsx -fno-fast-math ++override COMMON_OPT += -Ofast -mcpu=power10 -mtune=power10 -mvsx -fno-fast-math + FCOMMON_OPT += -O2 -frecursive -mcpu=power10 -mtune=power10 -fno-fast-math + endif + diff --git a/openblas.spec b/openblas.spec index 679f06f..6291cf4 100644 --- a/openblas.spec +++ b/openblas.spec @@ -29,6 +29,9 @@ Patch2: openblas-0.2.15-constructor.patch # Supply the proper flags to the test makefile Patch3: openblas-0.3.11-tests.patch +# Fix compile on power10 +Patch4: openblas-0.3.11-override.patch + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran @@ -240,6 +243,7 @@ cd OpenBLAS-%{version} %patch2 -p1 -b .constructor %endif %patch3 -p1 -b .tests +%patch4 -p1 -b .override # Fix source permissions find -name \*.f -exec chmod 644 {} \;