Accepting request 879883 from home:michel_mno:branches:science

- Update openblas-ppc64be_up2_p8.patch trimed by previous sr
  (still need changes in Makefile.system)

OBS-URL: https://build.opensuse.org/request/show/879883
OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=121
This commit is contained in:
Ismail Dönmez 2021-03-18 14:43:03 +00:00 committed by Git OBS Bridge
parent 4f9678748e
commit 90b656eba1
2 changed files with 38 additions and 1 deletions

View File

@ -11,8 +11,9 @@ because:
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
Makefile.system | 10 +++++++---
driver/others/dynamic_power.c | 11 +++++++++++
1 files changed, 11 insertions(+)
2 files changed, 18 insertions(+), 3 deletions(-)
Index: OpenBLAS-0.3.14/driver/others/dynamic_power.c
===================================================================
@ -83,3 +84,33 @@ Index: OpenBLAS-0.3.14/driver/others/dynamic_power.c
default: return NULL;
}
snprintf(message, 128, "Core not found: %s\n", coretype);
Index: OpenBLAS-0.3.14/Makefile.system
===================================================================
--- OpenBLAS-0.3.14.orig/Makefile.system
+++ OpenBLAS-0.3.14/Makefile.system
@@ -673,6 +673,9 @@ ifeq ($(ARCH), power)
ifneq ($(C_COMPILER), PGI)
DYNAMIC_CORE = POWER6
DYNAMIC_CORE += POWER8
+ifeq ($(__BYTE_ORDER__),__ORDER_BIG_ENDIAN__)
+$(info, OpenBLAS: for big endian limit to POWER8 kernels.)
+else
ifneq ($(C_COMPILER), GCC)
DYNAMIC_CORE += POWER9
DYNAMIC_CORE += POWER10
@@ -697,11 +700,12 @@ else
$(info, OpenBLAS: Your gcc version is too old to build the POWER10 kernels.)
endif
endif
-else
+endif # __ORDER_BIG_ENDIAN__
+else # C_COMPILER PGI
DYNAMIC_CORE = POWER8
DYNAMIC_CORE += POWER9
-endif
-endif
+endif # C_COMPILER PGI
+endif # ARCH power
# If DYNAMIC_CORE is not set, DYNAMIC_ARCH cannot do anything, so force it to empty
ifndef DYNAMIC_CORE

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 18 12:22:57 UTC 2021 - Michel Normand <normand@linux.vnet.ibm.com>
- Update openblas-ppc64be_up2_p8.patch trimed by previous sr
(still need changes in Makefile.system)
-------------------------------------------------------------------
Thu Mar 18 08:05:58 UTC 2021 - Ismail Dönmez <idonmez@suse.com>