s390x: gate dynamic arch detection on gcc version and add generic
When building OpenBLAS with DYNAMIC_ARCH=1 on s390x (aka zarch), make sure to include support for systems without the facilities introduced with z13 (i.e., zarch_generic). Adjust runtime detection to fallback to that generic code when running on a unknown platform other than Z13 through Z15. When detecting a Z13 or newer system, add a check for gcc support for the architecture-specific features before selecting the respective kernel. Fallback to Z13 or generic code, in case. Signed-off-by: Marius Hillenbrand <mhillen@linux.ibm.com>
This commit is contained in:
@@ -563,7 +563,8 @@ DYNAMIC_CORE += EMAG8180
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH), zarch)
|
||||
DYNAMIC_CORE = Z13
|
||||
DYNAMIC_CORE = ZARCH_GENERIC
|
||||
DYNAMIC_CORE += Z13
|
||||
DYNAMIC_CORE += Z14
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user