- 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
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de>
|
|
Date: Wed Mar 23 15:48:58 2022 +0100
|
|
Subject: Fix checks for AVX512 and atomics
|
|
Patch-mainline: Not yet
|
|
Git-repo: https://github.com/xianyi/OpenBLAS
|
|
Git-commit: c87a4dbf35c809ebe6bc88c7d8dce8f2e7b135ea
|
|
References:
|
|
|
|
|
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
|
---
|
|
c_check | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/c_check b/c_check
|
|
index 999f5a7a..e10ddfeb 100644
|
|
--- a/c_check
|
|
+++ b/c_check
|
|
@@ -254,7 +254,7 @@ if (($architecture eq "x86") || ($architecture eq "x86_64")) {
|
|
# $tmpf = new File::Temp( UNLINK => 1 );
|
|
($fh,$tmpf) = tempfile( SUFFIX => '.c' , UNLINK => 1 );
|
|
$code = '"vbroadcastss -4 * 4(%rsi), %zmm2"';
|
|
- print $tmpf "#include <immintrin.h>\n\nint main(void){ __asm__ volatile($code); }\n";
|
|
+ print $fh "#include <immintrin.h>\n\nint main(void){ __asm__ volatile($code); }\n";
|
|
$args = " -march=skylake-avx512 -c -o $tmpf.o $tmpf";
|
|
if ($compiler eq "PGI") {
|
|
$args = " -tp skylake -c -o $tmpf.o $tmpf";
|
|
@@ -278,7 +278,7 @@ if ($data =~ /HAVE_C11/) {
|
|
$c11_atomics = 0;
|
|
} else {
|
|
($fh,$tmpf) = tempfile( SUFFIX => '.c' , UNLINK => 1 );
|
|
- print $tmpf "#include <stdatomic.h>\nint main(void){}\n";
|
|
+ print $fh "#include <stdatomic.h>\nint main(void){}\n";
|
|
$args = " -c -o $tmpf.o $tmpf";
|
|
my @cmd = ("$compiler_name $flags $args >/dev/null 2>/dev/null");
|
|
system(@cmd) == 0;
|