From: Marius Hillenbrand Date: Mon, 7 Sep 2020 15:13:03 +0000 (+0200) Subject: s390x/DYNAMIC_ARCH: define a HW_CAP flag to support slightly older glibc versions X-Git-Tag: upstream/0.3.21~25^2~49^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a55fe06f251ff6269f4a126dec27f59bf3ea67f0;p=platform%2Fupstream%2Fopenblas.git s390x/DYNAMIC_ARCH: define a HW_CAP flag to support slightly older glibc versions Enable building DYNAMIC_ARCH support with older versions of glibc that do not know about the hwcap flag HWCAP_S390_VXE yet. Signed-off-by: Marius Hillenbrand --- diff --git a/driver/others/dynamic_zarch.c b/driver/others/dynamic_zarch.c index dac8909..bf5eab9 100644 --- a/driver/others/dynamic_zarch.c +++ b/driver/others/dynamic_zarch.c @@ -65,6 +65,10 @@ char* gotoblas_corename(void) { return corename[0]; } +#ifndef HWCAP_S390_VXE +#define HWCAP_S390_VXE 8192 +#endif + /** * Detect the fitting set of kernels by retrieving the CPU features supported by * OS from the auxiliary value AT_HWCAP and choosing the set of kernels