s390x/DYNAMIC_ARCH: pass supported arch levels from Makefile to run-time code
authorMarius Hillenbrand <mhillen@linux.ibm.com>
Mon, 7 Sep 2020 15:04:03 +0000 (17:04 +0200)
committerMarius Hillenbrand <mhillen@linux.ibm.com>
Tue, 8 Sep 2020 17:34:18 +0000 (19:34 +0200)
commit4f34bcfb5e2da40ffe02c9f0765b9f4e18e8f6f5
tree902d08aeaf00531e75ac331c886a97e861cb9d78
parent0629d8ebdb98995b995ac4593c98f7721703c8fc
s390x/DYNAMIC_ARCH: pass supported arch levels from Makefile to run-time code

... instead of duplicating the (old) mechanism from the Makefile that
aimed to derive supported architecture generations from the gcc
version.

To enable builds with DYNAMIC_ARCH with older compiler releases, the
Makefile and drivers/other/dynamic_arch.c need a common view of the
architecture support built into the library.

We follow the notation from x86 when used with DYNAMIC_LIST, where
defines DYN_<ARCH NAME> denote support for a given generation to be
built in. Since there are far fewer architecture generations in OpenBLAS
for s390x, that does not bloat command lines too much.

Signed-off-by: Marius Hillenbrand <mhillen@linux.ibm.com>
Makefile.system
driver/others/dynamic_zarch.c