- Build PPC64LE libraries with the lastest gcc available to take advantage of instruction sets in later CPUs used in the CPU specific kernels (jsc#SLE-18143, bsc#1197721). For fortran use the stock compiler to avoid compatibility issues between different versions of libfortran. This is relevant for Leap/SLE only. It may be dropped once gcc < 10 is no longer supported. - Do the same for x86_64 on SLE to make sure Cooperlake support is built properly. - Remove: * Do-not-attempt-to-check-host-CPU-if-TARGET-is-set.patch * Create-independent-kernel-Makfile-configuration-when-building-DYNAMIC_ARCH.patch * For-DYNAMIC_ARCH-don-t-use-sbgemm_r-as-parameter.c-doesn-t-get-build.patch Instead, add from upstream: * Define-sbgemm_r-to-fix-DYNAMIC_ARCH-builds.patch * Remove-extraneous-and-wrong-definition-of-sbgemm_r-on-x86_64.patch * Fix-checks-for-AVX512-and-atomics.patch * Revert-AVX512-capability-check-from-PR-1980-moved-to-build.patch * Use-CC-and-full-command-line-instead-of-hard-coding-gcc-for-AVX512-checking.patch * Utilize-compiler-AVX512-capability-info-from-c_check-when-building-getarch.patch BLAS/LAPACK implementation (boo#1177260). 'openblas-common-devel' will provide the removed 'openblas-devel-headers' while the arch specific 'preferred' flavor will provide the removed 'openblas-devel'. OBS-URL: https://build.opensuse.org/request/show/966356 OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=131
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From: Egbert Eich <eich@suse.com>
|
|
Date: Mon Mar 28 08:14:52 2022 +0200
|
|
Subject: Use CC and full command line instead of hard-coding gcc for AVX512 checking
|
|
Patch-mainline: Not yet
|
|
Git-repo: https://github.com/xianyi/OpenBLAS
|
|
Git-commit: 0b69fa6ddf7fc6d92bc42ef085f39337a4489f3c
|
|
References:
|
|
|
|
Hard-coding gcc may not provide incorrect results when a different compiler
|
|
for the target build is used. To remain in sync with the main call to c_check,
|
|
pass the full command line.
|
|
|
|
Signed-off-by: Egbert Eich <eich@suse.com>
|
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
|
---
|
|
Makefile.prebuild | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
diff --git a/Makefile.prebuild b/Makefile.prebuild
|
|
index 4dad74d6..5e8874d4 100644
|
|
--- a/Makefile.prebuild
|
|
+++ b/Makefile.prebuild
|
|
@@ -71,7 +71,7 @@ endif
|
|
|
|
|
|
getarch : getarch.c cpuid.S dummy $(CPUIDEMU)
|
|
- avx512=$$(perl c_check - - gcc | grep NO_AVX512); \
|
|
+ avx512=$$(perl c_check - - $(CC) $(TARGET_FLAGS) $(CFLAGS) | grep NO_AVX512); \
|
|
$(HOSTCC) $(HOST_CFLAGS) $(EXFLAGS) $${avx512:+-D$${avx512}} -o $(@F) getarch.c cpuid.S $(CPUIDEMU)
|
|
|
|
getarch_2nd : getarch_2nd.c config.h dummy
|