public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/
@ 2022-05-13 12:58 WANG Xuerui
  0 siblings, 0 replies; 3+ messages in thread
From: WANG Xuerui @ 2022-05-13 12:58 UTC (permalink / raw
  To: gentoo-commits

commit:     ddd2668b8fd04954822288f69307fcbd26f43bb5
Author:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
AuthorDate: Fri May 13 12:45:40 2022 +0000
Commit:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
CommitDate: Fri May 13 12:57:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddd2668b

sci-libs/openblas: run scrub-patch on openblas-0.3.20-fix-riscv.patch

Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org>

 sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch b/sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch
index 9a14180cb85d..a386a0b38467 100644
--- a/sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch
+++ b/sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch
@@ -1,7 +1,6 @@
 Bug: https://bugs.gentoo.org/837806
 From https://github.com/xianyi/OpenBLAS/pull/3613
 
-From 3fc52ebcfb80e01f753938fd314ca07b2c085767 Mon Sep 17 00:00:00 2001
 From: Han Gao <gaohan@uniontech.com>
 Date: Wed, 27 Apr 2022 01:34:55 +0800
 Subject: [PATCH 1/2] Fix other arch build in detect.
@@ -9,12 +8,6 @@ Subject: [PATCH 1/2] Fix other arch build in detect.
 When CORE is empty, use -march=loongson3a. Fix it.
 
 Signed-off-by: Han Gao <gaohan@uniontech.com>
----
- Makefile.system | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile.system b/Makefile.system
-index ac60eae5b6..1104893b55 100644
 --- a/Makefile.system
 +++ b/Makefile.system
 @@ -847,7 +847,7 @@ CCOMMON_OPT += -mabi=32
@@ -27,19 +20,11 @@ index ac60eae5b6..1104893b55 100644
  FCOMMON_OPT += -march=loongson3a
  endif
 
-From 8123324c99ba69ce23b4028468313663001a76c6 Mon Sep 17 00:00:00 2001
 From: Han Gao <gaohan@uniontech.com>
 Date: Wed, 27 Apr 2022 02:29:43 +0800
 Subject: [PATCH 2/2] Fix riscv64 arch detect
 
 Signed-off-by: Han Gao <gaohan@uniontech.com>
----
- cpuid_riscv64.c | 18 +++++++++---------
- getarch.c       |  4 ++--
- 2 files changed, 11 insertions(+), 11 deletions(-)
-
-diff --git a/cpuid_riscv64.c b/cpuid_riscv64.c
-index 0eb50e0018..2aa4217816 100644
 --- a/cpuid_riscv64.c
 +++ b/cpuid_riscv64.c
 @@ -1,5 +1,5 @@
@@ -92,8 +77,6 @@ index 0eb50e0018..2aa4217816 100644
    printf("#define L1_DATA_SIZE 65536\n");
    printf("#define L1_DATA_LINESIZE 32\n");
    printf("#define L2_SIZE 512488\n");
-diff --git a/getarch.c b/getarch.c
-index 4af986fb3b..f4590769d9 100644
 --- a/getarch.c
 +++ b/getarch.c
 @@ -1731,7 +1731,7 @@ int main(int argc, char *argv[]){


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/
@ 2023-07-08 18:08 Conrad Kostecki
  0 siblings, 0 replies; 3+ messages in thread
From: Conrad Kostecki @ 2023-07-08 18:08 UTC (permalink / raw
  To: gentoo-commits

commit:     b3af2faefa111cdc72f70001340793f9a4658c8e
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Jul  8 08:50:37 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Jul  8 18:05:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3af2fae

sci-libs/openblas: remove unused patches

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/31800
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../openblas/files/openblas-0.3.20-fix-loong.patch | 178 ---------------------
 .../openblas/files/openblas-0.3.20-fix-riscv.patch |  99 ------------
 2 files changed, 277 deletions(-)

diff --git a/sci-libs/openblas/files/openblas-0.3.20-fix-loong.patch b/sci-libs/openblas/files/openblas-0.3.20-fix-loong.patch
deleted file mode 100644
index 2745d26cb3a5..000000000000
--- a/sci-libs/openblas/files/openblas-0.3.20-fix-loong.patch
+++ /dev/null
@@ -1,178 +0,0 @@
-https://github.com/xianyi/OpenBLAS/pull/3626, rebased on top of v0.3.20.
-
-From: WANG Xuerui <xen0n@gentoo.org>
-Date: Fri, 13 May 2022 15:26:33 +0800
-Subject: [PATCH 1/3] Move LoongArch make rules to Makefile.loongarch64
-
---- a/Makefile.loongarch64
-+++ b/Makefile.loongarch64
-@@ -1,3 +1,4 @@
--ifdef BINARY64
--else
-+ifeq ($(CORE), LOONGSON3R5)
-+CCOMMON_OPT += -march=loongarch64 -mabi=lp64
-+FCOMMON_OPT += -march=loongarch64 -mabi=lp64
- endif
---- a/Makefile.system
-+++ b/Makefile.system
-@@ -886,13 +886,6 @@ ifeq ($(OSNAME), AIX)
- BINARY_DEFINED = 1
- endif
- 
--ifeq ($(ARCH), loongarch64)
--ifeq ($(CORE), LOONGSON3R5)
--CCOMMON_OPT += -march=loongarch64 -mabi=lp64
--FCOMMON_OPT += -march=loongarch64 -mabi=lp64
--endif
--endif
--
- endif
- 
- ifndef BINARY_DEFINED
-From: WANG Xuerui <xen0n@gentoo.org>
-Date: Fri, 13 May 2022 15:53:22 +0800
-Subject: [PATCH 2/3] Probe for old-world LASX flavor on LoongArch and use
- generic DGEMM kernel otherwise
-
-See: https://bugs.gentoo.org/844013
---- a/Makefile.system
-+++ b/Makefile.system
-@@ -1683,6 +1683,7 @@ export TARGET_CORE
- export NO_AVX512
- export NO_AVX2
- export BUILD_BFLOAT16
-+export NO_LASX
- 
- export SBGEMM_UNROLL_M
- export SBGEMM_UNROLL_N
---- a/c_check
-+++ b/c_check
-@@ -270,6 +270,37 @@ if (($architecture eq "x86") || ($architecture eq "x86_64")) {
-     }
- }
- 
-+$no_lasx = 0;
-+if (($architecture eq "loongarch64")) {
-+    eval "use File::Temp qw(tempfile)";
-+    if ($@){
-+        warn "could not load PERL module File::Temp, so could not check compiler compatibility with the LoongArch LASX extension";
-+        # Assume no LASX, because currently LASX is only present in vendor
-+        # toolchains, undocumented nor upstreamed.
-+        $no_lasx = 1;
-+    } else {
-+        # Old-world assembly flavor: LASX registers named "$xrNN", different
-+        # from the ISA manual which suggests "$xNN". This is the flavor we
-+        # currently support.
-+        #
-+        # As the LASX ISA manual is not out yet, we cannot predict what the
-+        # new-world flavor would look like, so do not probe flavor for now.
-+        # The compiler flags are also unsuitable for new-world gcc.
-+        ($fh,$tmpf) = tempfile( SUFFIX => '.c' , UNLINK => 1 );
-+        $code = '"xvld $xr0, $a0, 0\n"';
-+        print $fh "int main(void){ __asm__ volatile($code); }\n";
-+        $args = " -march=loongarch64 -mabi=lp64 -mlasx -c -o $tmpf.o $tmpf";
-+        my @cmd = ("$compiler_name $flags $args >/dev/null 2>/dev/null");
-+        system(@cmd) == 0;
-+        if ($? != 0) {
-+            $no_lasx = 1;
-+        } else {
-+            $no_lasx = 0;
-+        }
-+        unlink("$tmpf.o");
-+    }
-+}
-+
- $c11_atomics = 0;
- if ($data =~ /HAVE_C11/) {
-     eval "use File::Temp qw(tempfile)";
-@@ -393,6 +424,7 @@ print MAKEFILE "HAVE_MSA=1\n" if $have_msa eq 1;
- print MAKEFILE "MSA_FLAGS=$msa_flags\n" if $have_msa eq 1;
- print MAKEFILE "NO_AVX512=1\n" if $no_avx512 eq 1;
- print MAKEFILE "NO_AVX2=1\n" if $no_avx2 eq 1;
-+print MAKEFILE "NO_LASX=1\n" if $no_lasx eq 1;
- print MAKEFILE "OLDGCC=1\n" if $oldgcc eq 1;
- 
- $os           =~ tr/[a-z]/[A-Z]/;
---- a/kernel/loongarch64/KERNEL.LOONGSON3R5
-+++ b/kernel/loongarch64/KERNEL.LOONGSON3R5
-@@ -1,3 +1,7 @@
-+ifeq ($(NO_LASX), 1)
-+# No LASX support in compiler, unable to consume the optimized version
-+# leave out DGEMMKERNEL to pull in the generic version
-+else
- DGEMMKERNEL    = dgemm_kernel_16x4.S
- DGEMMINCOPY    = dgemm_ncopy_16.S
- DGEMMITCOPY    = dgemm_tcopy_16.S
-@@ -7,6 +11,7 @@ DGEMMINCOPYOBJ = dgemm_incopy.o
- DGEMMITCOPYOBJ = dgemm_itcopy.o
- DGEMMONCOPYOBJ = dgemm_oncopy.o
- DGEMMOTCOPYOBJ = dgemm_otcopy.o
-+endif
- 
- DTRSMKERNEL_LN  = ../generic/trsm_kernel_LN.c
- DTRSMKERNEL_LT  = ../generic/trsm_kernel_LT.c
-From: WANG Xuerui <xen0n@gentoo.org>
-Date: Fri, 13 May 2022 16:23:46 +0800
-Subject: [PATCH 3/3] Fix ABI CFLAGS setting on new-world LoongArch
-
-See: https://bugs.gentoo.org/844013
---- a/Makefile.loongarch64
-+++ b/Makefile.loongarch64
-@@ -1,4 +1,13 @@
- ifeq ($(CORE), LOONGSON3R5)
--CCOMMON_OPT += -march=loongarch64 -mabi=lp64
--FCOMMON_OPT += -march=loongarch64 -mabi=lp64
-+CCOMMON_OPT += -march=loongarch64
-+FCOMMON_OPT += -march=loongarch64
-+
-+ifeq ($(LOONGARCH_CC_FLAVOR), NEW)
-+CCOMMON_OPT += -mabi=lp64d
-+FCOMMON_OPT += -mabi=lp64d
-+endif
-+ifeq ($(LOONGARCH_CC_FLAVOR), OLD)
-+CCOMMON_OPT += -mabi=lp64
-+FCOMMON_OPT += -mabi=lp64
-+endif
- endif
---- a/Makefile.system
-+++ b/Makefile.system
-@@ -1683,6 +1683,7 @@ export TARGET_CORE
- export NO_AVX512
- export NO_AVX2
- export BUILD_BFLOAT16
-+export LOONGARCH_CC_FLAVOR
- export NO_LASX
- 
- export SBGEMM_UNROLL_M
---- a/c_check
-+++ b/c_check
-@@ -270,6 +270,21 @@ if (($architecture eq "x86") || ($architecture eq "x86_64")) {
-     }
- }
- 
-+$loongarch_cc_flavor = "";
-+if (($architecture eq "loongarch64")) {
-+    # Currently there are only 2 flavors: new-world and old-world.
-+    # They differ in ABI names accepted, so check it to avoid creating temp
-+    # files.
-+    $args = " -mabi=lp64d -E -o - /dev/null";
-+    my @cmd = ("$compiler_name $flags $args >/dev/null 2>/dev/null");
-+    system(@cmd) == 0;
-+    if ($? != 0) {
-+        $loongarch_cc_flavor = "OLD";
-+    } else {
-+        $loongarch_cc_flavor = "NEW";
-+    }
-+}
-+
- $no_lasx = 0;
- if (($architecture eq "loongarch64")) {
-     eval "use File::Temp qw(tempfile)";
-@@ -424,6 +439,7 @@ print MAKEFILE "HAVE_MSA=1\n" if $have_msa eq 1;
- print MAKEFILE "MSA_FLAGS=$msa_flags\n" if $have_msa eq 1;
- print MAKEFILE "NO_AVX512=1\n" if $no_avx512 eq 1;
- print MAKEFILE "NO_AVX2=1\n" if $no_avx2 eq 1;
-+print MAKEFILE "LOONGARCH_CC_FLAVOR=$loongarch_cc_flavor\n" if $architecture eq "loongarch64";
- print MAKEFILE "NO_LASX=1\n" if $no_lasx eq 1;
- print MAKEFILE "OLDGCC=1\n" if $oldgcc eq 1;
- 

diff --git a/sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch b/sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch
deleted file mode 100644
index a386a0b38467..000000000000
--- a/sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch
+++ /dev/null
@@ -1,99 +0,0 @@
-Bug: https://bugs.gentoo.org/837806
-From https://github.com/xianyi/OpenBLAS/pull/3613
-
-From: Han Gao <gaohan@uniontech.com>
-Date: Wed, 27 Apr 2022 01:34:55 +0800
-Subject: [PATCH 1/2] Fix other arch build in detect.
-
-When CORE is empty, use -march=loongson3a. Fix it.
-
-Signed-off-by: Han Gao <gaohan@uniontech.com>
---- a/Makefile.system
-+++ b/Makefile.system
-@@ -847,7 +847,7 @@ CCOMMON_OPT += -mabi=32
- BINARY_DEFINED = 1
- endif
- 
--ifeq ($(CORE), $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
-+ifneq (, $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
- CCOMMON_OPT += -march=loongson3a
- FCOMMON_OPT += -march=loongson3a
- endif
-
-From: Han Gao <gaohan@uniontech.com>
-Date: Wed, 27 Apr 2022 02:29:43 +0800
-Subject: [PATCH 2/2] Fix riscv64 arch detect
-
-Signed-off-by: Han Gao <gaohan@uniontech.com>
---- a/cpuid_riscv64.c
-+++ b/cpuid_riscv64.c
-@@ -1,5 +1,5 @@
- /*****************************************************************************
--Copyright (c) 2011-2014, The OpenBLAS Project
-+Copyright (c) 2011-2022, The OpenBLAS Project
- All rights reserved.
- 
- Redistribution and use in source and binary forms, with or without
-@@ -13,9 +13,9 @@ modification, are permitted provided that the following conditions are
-       notice, this list of conditions and the following disclaimer in
-       the documentation and/or other materials provided with the
-       distribution.
--   3. Neither the name of the OpenBLAS project nor the names of 
--      its contributors may be used to endorse or promote products 
--      derived from this software without specific prior written 
-+   3. Neither the name of the OpenBLAS project nor the names of
-+      its contributors may be used to endorse or promote products
-+      derived from this software without specific prior written
-       permission.
- 
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-@@ -70,16 +70,16 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- /* or implied, of The University of Texas at Austin.                 */
- /*********************************************************************/
- 
--#define CPU_UNKNOWN     0
--#define CPU_C910V       1
-+#define CPU_GENERIC   0
-+#define CPU_C910V     1
- 
- static char *cpuname[] = {
--  "UNKOWN",
-+  "RISCV64_GENERIC",
-   "C910V"
- };
- 
- int detect(void){
--    return CPU_UNKNOWN;
-+  return CPU_GENERIC;
- }
- 
- char *get_corename(void){
-@@ -98,7 +98,7 @@ void get_subdirname(void){
- }
- 
- void get_cpuconfig(void){
--  printf("#define UNKNOWN\n");
-+  printf("#define %s\n", cpuname[detect()]);
-   printf("#define L1_DATA_SIZE 65536\n");
-   printf("#define L1_DATA_LINESIZE 32\n");
-   printf("#define L2_SIZE 512488\n");
---- a/getarch.c
-+++ b/getarch.c
-@@ -1731,7 +1731,7 @@ int main(int argc, char *argv[]){
- #ifdef FORCE
-     printf("CORE=%s\n", CORENAME);
- #else
--#if defined(INTEL_AMD) || defined(POWER) || defined(__mips__) || defined(__arm__) || defined(__aarch64__) || defined(ZARCH) || defined(sparc) || defined(__loongarch__)
-+#if defined(INTEL_AMD) || defined(POWER) || defined(__mips__) || defined(__arm__) || defined(__aarch64__) || defined(ZARCH) || defined(sparc) || defined(__loongarch__) || defined(__riscv)
-     printf("CORE=%s\n", get_corename());
- #endif
- #endif
-@@ -1879,7 +1879,7 @@ printf("ELF_VERSION=2\n");
- #ifdef FORCE
-     printf("#define CHAR_CORENAME \"%s\"\n", CORENAME);
- #else
--#if defined(INTEL_AMD) || defined(POWER) || defined(__mips__) || defined(__arm__) || defined(__aarch64__) || defined(ZARCH) || defined(sparc) || defined(__loongarch__)
-+#if defined(INTEL_AMD) || defined(POWER) || defined(__mips__) || defined(__arm__) || defined(__aarch64__) || defined(ZARCH) || defined(sparc) || defined(__loongarch__) || defined(__riscv)
-     printf("#define CHAR_CORENAME \"%s\"\n", get_corename());
- #endif
- #endif


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/
@ 2021-11-23 20:37 Conrad Kostecki
  0 siblings, 0 replies; 3+ messages in thread
From: Conrad Kostecki @ 2021-11-23 20:37 UTC (permalink / raw
  To: gentoo-commits

commit:     edaaf5f0bf2f6f203fcc6c9cc37a2e5903e56eaa
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Tue Nov 16 16:55:56 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Nov 23 20:33:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edaaf5f0

sci-libs/openblas: remove unused patches

Closes: https://github.com/gentoo/gentoo/pull/22975
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 sci-libs/openblas/files/dont-clobber-fflags.patch  |  31 -----
 .../openblas-0.3.10-dont-clobber-fflags.patch      |  26 ----
 sci-libs/openblas/files/shared-blas-lapack.patch   | 137 ---------------------
 3 files changed, 194 deletions(-)

diff --git a/sci-libs/openblas/files/dont-clobber-fflags.patch b/sci-libs/openblas/files/dont-clobber-fflags.patch
deleted file mode 100644
index 21bbec4b1b3b..000000000000
--- a/sci-libs/openblas/files/dont-clobber-fflags.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 05c96dad9b26cc1f00831661dc55139dcc9d5680 Mon Sep 17 00:00:00 2001
-From: Michael Orlitzky <michael@orlitzky.com>
-Date: Thu, 11 Jun 2020 18:32:17 -0400
-Subject: [PATCH 1/1] Makefile: don't clobber fortran flags while building
- lapack.
-
-When a user has the FFLAGS environment variable set, it clobbers the
-flags used to compile lapack. This can lead to "rare and hard to
-reproduce crashes" or test failures, as we have observed in Gentoo.
-
-Issue: https://github.com/xianyi/OpenBLAS/issues/2657
----
- Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile b/Makefile
-index a22e16ba..2bae565e 100644
---- a/Makefile
-+++ b/Makefile
-@@ -248,7 +248,7 @@ prof_lapack : lapack_prebuild
- lapack_prebuild :
- ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
- 	-@echo "FC          = $(FC)" > $(NETLIB_LAPACK_DIR)/make.inc
--	-@echo "FFLAGS      = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
-+	-@echo "override FFLAGS      = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
- 	-@echo "POPTS       = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
- 	-@echo "FFLAGS_NOOPT       = -O0 $(LAPACK_NOOPT)" >> $(NETLIB_LAPACK_DIR)/make.inc
- 	-@echo "PNOOPT      = $(LAPACK_FPFLAGS) -O0" >> $(NETLIB_LAPACK_DIR)/make.inc
--- 
-2.26.2
-

diff --git a/sci-libs/openblas/files/openblas-0.3.10-dont-clobber-fflags.patch b/sci-libs/openblas/files/openblas-0.3.10-dont-clobber-fflags.patch
deleted file mode 100644
index 4890b7377ab5..000000000000
--- a/sci-libs/openblas/files/openblas-0.3.10-dont-clobber-fflags.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Rebased version of previous patch below.
-----
-From 05c96dad9b26cc1f00831661dc55139dcc9d5680 Mon Sep 17 00:00:00 2001
-From: Michael Orlitzky <michael@orlitzky.com>
-Date: Thu, 11 Jun 2020 18:32:17 -0400
-Subject: [PATCH 1/1] Makefile: don't clobber fortran flags while building
- lapack.
-
-When a user has the FFLAGS environment variable set, it clobbers the
-flags used to compile lapack. This can lead to "rare and hard to
-reproduce crashes" or test failures, as we have observed in Gentoo.
-
-Issue: https://github.com/xianyi/OpenBLAS/issues/2657
-diff --git a/Makefile b/Makefile
-index e113026..dd8b655 100644
---- a/Makefile
-+++ b/Makefile
-@@ -263,7 +263,7 @@ prof_lapack : lapack_prebuild
- lapack_prebuild :
- ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
- 	-@echo "FC          = $(FC)" > $(NETLIB_LAPACK_DIR)/make.inc
--	-@echo "FFLAGS      = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
-+	-@echo "override FFLAGS      = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
- 	-@echo "FFLAGS_DRV  = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
- 	-@echo "POPTS       = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
- 	-@echo "FFLAGS_NOOPT       = -O0 $(LAPACK_NOOPT)" >> $(NETLIB_LAPACK_DIR)/make.inc

diff --git a/sci-libs/openblas/files/shared-blas-lapack.patch b/sci-libs/openblas/files/shared-blas-lapack.patch
deleted file mode 100644
index fc77427362c1..000000000000
--- a/sci-libs/openblas/files/shared-blas-lapack.patch
+++ /dev/null
@@ -1,137 +0,0 @@
-diff --git a/sci-libs/openblas/files/Makefile b/sci-libs/openblas/files/Makefile
-index 20ec74e..87e842f 100644
---- a/interface/Makefile
-+++ b/interface/Makefile
-@@ -2151,3 +2151,132 @@ cblas_zgeadd.$(SUFFIX) cblas_zgeadd.$(PSUFFIX) : zgeadd.c
- 
- cblas_xerbla.$(SUFFIX) cblas_xerbla.$(PSUFFIX) : xerbla.c
- 	$(CC) -c $(CFLAGS) -DCBLAS $< -o $(@F)
-+
-+#############################################################################
-+# Customized shared objects
-+
-+FSBLAS1OBJS    = \
-+		saxpy.$(SUFFIX) sswap.$(SUFFIX) \
-+		scopy.$(SUFFIX) sscal.$(SUFFIX) \
-+		sdot.$(SUFFIX) sdsdot.$(SUFFIX) dsdot.$(SUFFIX) \
-+		sasum.$(SUFFIX) snrm2.$(SUFFIX) \
-+		smax.$(SUFFIX) samax.$(SUFFIX) ismax.$(SUFFIX) isamax.$(SUFFIX) \
-+		smin.$(SUFFIX) samin.$(SUFFIX) ismin.$(SUFFIX) isamin.$(SUFFIX) \
-+		srot.$(SUFFIX) srotg.$(SUFFIX) srotm.$(SUFFIX) srotmg.$(SUFFIX) \
-+		saxpby.$(SUFFIX)
-+
-+FSBLAS2OBJS    = \
-+		sgemv.$(SUFFIX) sger.$(SUFFIX) \
-+		strsv.$(SUFFIX) strmv.$(SUFFIX) ssymv.$(SUFFIX) \
-+		ssyr.$(SUFFIX)  ssyr2.$(SUFFIX) sgbmv.$(SUFFIX) \
-+		ssbmv.$(SUFFIX) sspmv.$(SUFFIX) \
-+		sspr.$(SUFFIX)  sspr2.$(SUFFIX) \
-+		stbsv.$(SUFFIX) stbmv.$(SUFFIX) \
-+		stpsv.$(SUFFIX) stpmv.$(SUFFIX)
-+
-+FSBLAS3OBJS    = \
-+		sgemm.$(SUFFIX) ssymm.$(SUFFIX) strmm.$(SUFFIX) \
-+		strsm.$(SUFFIX) ssyrk.$(SUFFIX) ssyr2k.$(SUFFIX) \
-+		somatcopy.$(SUFFIX) simatcopy.$(SUFFIX)\
-+		sgeadd.$(SUFFIX)
-+
-+
-+FDBLAS1OBJS    = \
-+		daxpy.$(SUFFIX) dswap.$(SUFFIX) \
-+		dcopy.$(SUFFIX) dscal.$(SUFFIX) \
-+		ddot.$(SUFFIX) \
-+		dasum.$(SUFFIX) dnrm2.$(SUFFIX) \
-+		dmax.$(SUFFIX) damax.$(SUFFIX) idmax.$(SUFFIX) idamax.$(SUFFIX) \
-+		dmin.$(SUFFIX) damin.$(SUFFIX) idmin.$(SUFFIX) idamin.$(SUFFIX) \
-+		drot.$(SUFFIX) drotg.$(SUFFIX) drotm.$(SUFFIX) drotmg.$(SUFFIX) \
-+		daxpby.$(SUFFIX)
-+
-+FDBLAS2OBJS    = \
-+		dgemv.$(SUFFIX) dger.$(SUFFIX) \
-+		dtrsv.$(SUFFIX) dtrmv.$(SUFFIX) dsymv.$(SUFFIX) \
-+		dsyr.$(SUFFIX)  dsyr2.$(SUFFIX) dgbmv.$(SUFFIX) \
-+		dsbmv.$(SUFFIX) dspmv.$(SUFFIX) \
-+		dspr.$(SUFFIX)  dspr2.$(SUFFIX) \
-+		dtbsv.$(SUFFIX) dtbmv.$(SUFFIX) \
-+		dtpsv.$(SUFFIX) dtpmv.$(SUFFIX)
-+
-+FDBLAS3OBJS    = \
-+		dgemm.$(SUFFIX) dsymm.$(SUFFIX) dtrmm.$(SUFFIX) \
-+		dtrsm.$(SUFFIX) dsyrk.$(SUFFIX) dsyr2k.$(SUFFIX) \
-+		domatcopy.$(SUFFIX) dimatcopy.$(SUFFIX)\
-+		dgeadd.$(SUFFIX) 
-+
-+FCBLAS1OBJS    = \
-+		caxpy.$(SUFFIX) caxpyc.$(SUFFIX) cswap.$(SUFFIX) \
-+		ccopy.$(SUFFIX) cscal.$(SUFFIX) csscal.$(SUFFIX) \
-+		cdotc.$(SUFFIX)  cdotu.$(SUFFIX) \
-+		scasum.$(SUFFIX) scnrm2.$(SUFFIX) \
-+		scamax.$(SUFFIX) icamax.$(SUFFIX) \
-+		scamin.$(SUFFIX) icamin.$(SUFFIX) \
-+		csrot.$(SUFFIX) crotg.$(SUFFIX) \
-+		caxpby.$(SUFFIX)
-+
-+FCBLAS2OBJS    = \
-+		cgemv.$(SUFFIX) cgeru.$(SUFFIX) cgerc.$(SUFFIX) \
-+		ctrsv.$(SUFFIX) ctrmv.$(SUFFIX) \
-+		csyr2.$(SUFFIX) cgbmv.$(SUFFIX) \
-+		csbmv.$(SUFFIX) \
-+		cspr2.$(SUFFIX) \
-+		ctbsv.$(SUFFIX) ctbmv.$(SUFFIX) \
-+		ctpsv.$(SUFFIX) ctpmv.$(SUFFIX) \
-+		chemv.$(SUFFIX) chbmv.$(SUFFIX) \
-+		cher.$(SUFFIX)  cher2.$(SUFFIX) \
-+		chpmv.$(SUFFIX) chpr.$(SUFFIX)  chpr2.$(SUFFIX)
-+
-+FCBLAS3OBJS    = \
-+		cgemm.$(SUFFIX) csymm.$(SUFFIX) ctrmm.$(SUFFIX) \
-+		ctrsm.$(SUFFIX) csyrk.$(SUFFIX) csyr2k.$(SUFFIX) \
-+	       	chemm.$(SUFFIX) cherk.$(SUFFIX) cher2k.$(SUFFIX) \
-+		comatcopy.$(SUFFIX) cimatcopy.$(SUFFIX)\
-+		cgeadd.$(SUFFIX) 
-+
-+FZBLAS1OBJS    = \
-+		zaxpy.$(SUFFIX) zaxpyc.$(SUFFIX) zswap.$(SUFFIX) \
-+		zcopy.$(SUFFIX) zscal.$(SUFFIX) zdscal.$(SUFFIX) \
-+		zdotc.$(SUFFIX)  zdotu.$(SUFFIX) \
-+		dzasum.$(SUFFIX)  dznrm2.$(SUFFIX) \
-+		dzamax.$(SUFFIX) izamax.$(SUFFIX) \
-+		dzamin.$(SUFFIX) izamin.$(SUFFIX) \
-+		zdrot.$(SUFFIX) zrotg.$(SUFFIX) \
-+		zaxpby.$(SUFFIX)
-+
-+FZBLAS2OBJS    = \
-+		zgemv.$(SUFFIX) zgeru.$(SUFFIX) zgerc.$(SUFFIX) \
-+		ztrsv.$(SUFFIX) ztrmv.$(SUFFIX) \
-+		zsyr2.$(SUFFIX) zgbmv.$(SUFFIX) \
-+		zsbmv.$(SUFFIX) \
-+		zspr2.$(SUFFIX) \
-+		ztbsv.$(SUFFIX) ztbmv.$(SUFFIX) \
-+		ztpsv.$(SUFFIX) ztpmv.$(SUFFIX) \
-+		zhemv.$(SUFFIX) zhbmv.$(SUFFIX) \
-+		zher.$(SUFFIX)  zher2.$(SUFFIX) \
-+		zhpmv.$(SUFFIX) zhpr.$(SUFFIX)  zhpr2.$(SUFFIX)
-+
-+FZBLAS3OBJS    = \
-+		zgemm.$(SUFFIX) zsymm.$(SUFFIX) ztrmm.$(SUFFIX) \
-+		ztrsm.$(SUFFIX) zsyrk.$(SUFFIX) zsyr2k.$(SUFFIX) \
-+	       	zhemm.$(SUFFIX) zherk.$(SUFFIX) zher2k.$(SUFFIX) \
-+		zomatcopy.$(SUFFIX) zimatcopy.$(SUFFIX)\
-+		zgeadd.$(SUFFIX) 
-+
-+shared-blas-lapack: libblas.so.3 libcblas.so.3 liblapack.so.3
-+
-+# The list of prerequisite is created by comparing with NETLIB BLAS public API.
-+# The symbol cblas_xerbla is missing here, but it does not seem to be provided
-+# by libopenblas.so.0 either.
-+libblas.so.3: $(FSBLAS1OBJS) $(FSBLAS2OBJS) $(FSBLAS3OBJS) $(FDBLAS1OBJS) $(FDBLAS2OBJS) $(FDBLAS3OBJS) $(FCBLAS1OBJS) $(FCBLAS2OBJS) $(FCBLAS3OBJS) $(FZBLAS1OBJS) $(FZBLAS2OBJS) $(FZBLAS3OBJS) ../kernel/lsame.o ../kernel/scabs1.o ../kernel/dcabs1.o ../driver/others/xerbla.o
-+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,libblas.so.3 -L.. -lopenblas $(EXTRALIB)
-+
-+libcblas.so.3: $(CSBLAS1OBJS) $(CSBLAS2OBJS) $(CSBLAS3OBJS) $(CDBLAS1OBJS) $(CDBLAS2OBJS) $(CDBLAS3OBJS) $(CCBLAS1OBJS) $(CCBLAS2OBJS) $(CCBLAS3OBJS) $(CZBLAS1OBJS) $(CZBLAS2OBJS) $(CZBLAS3OBJS) ../kernel/lsame.o ../kernel/scabs1.o ../kernel/dcabs1.o ../driver/others/xerbla.o
-+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,libcblas.so.3 -L.. -lopenblas $(EXTRALIB)
-+
-+liblapack.so.3: $(SLAPACKOBJS) $(DLAPACKOBJS) $(CLAPACKOBJS) $(ZLAPACKOBJS) ../kernel/lsame.o ../driver/others/xerbla.o
-+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ ../lapack-netlib/SRC/*.o -Wl,-soname,liblapack.so.3 -L.. -lopenblas $(EXTRALIB)
-+
-+clean::
-+	rm -f libblas.so.3 libcblas.so.3 liblapack.so.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-08 18:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-13 12:58 [gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/ WANG Xuerui
  -- strict thread matches above, loose matches on Subject: below --
2023-07-08 18:08 Conrad Kostecki
2021-11-23 20:37 Conrad Kostecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox