[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 5f8d09e4b1e28f21aae673af7d7e660c217665d4 Author: Sam James gentoo org> AuthorDate: Thu May 2 05:43:27 2024 + Commit: Sam James gentoo org> CommitDate: Thu May 2 05:43:27 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f8d09e4 sci-libs/openblas: fix symlinks with USE=eselect-ldso Closes: https://bugs.gentoo.org/923998 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.26-r1.ebuild | 197 1 file changed, 197 insertions(+) diff --git a/sci-libs/openblas/openblas-0.3.26-r1.ebuild b/sci-libs/openblas/openblas-0.3.26-r1.ebuild new file mode 100644 index ..9bd2045ad974 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.26-r1.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic fortran-2 toolchain-funcs + +MY_P=OpenBLAS-${PV} +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="https://github.com/xianyi/OpenBLAS"; +SRC_URI="https://github.com/OpenMathLib/OpenBLAS/releases/download/v${PV}/${MY_P}.tar.gz"; +S="${WORKDIR}"/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.23-shared-blas-lapack.patch" +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + + fortran-2_pkg_setup +} + +src_prepare() { + default + + # TODO: Unbundle lapack like Fedora does? + # https://src.fedoraproject.org/rpms/openblas/blob/rawhide/f/openblas-0.2.15-system_lapack.patch + + # Don't build the tests as part of "make all". We'll do + # it explicitly later if the test phase is enabled. + sed -i -e "/^all :: tests/s: tests::g" Makefile || die + + # If 64bit-index is needed, create second library with LIBPREFIX=libopenblas64 + if use index-64bit; then + cp -aL "${S}" "${S}-index-64bit" || die + fi +} + +src_configure() { + # List of most configurable options is in Makefile.rule. + + # Not an easy fix, https://github.com/xianyi/OpenBLAS/issues/4128 + filter-lto + + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC="$(tc-getBUILD_CC)" + + # Threading options + export USE_THREAD=0 + export USE_OPENMP=0 + if use openmp; then + USE_THREAD=1 + USE_OPENMP=1 + elif use pthread; then + USE_THREAD=1 + USE_OPENMP=0 + fi + + # Disable submake with -j and default optimization flags in Makefile.system + # Makefile.rule says to not modify COMMON_OPT/FCOMMON_OPT... + export MAKE_NB_JOBS=-1 COMMON_OPT=" " FCOMMON_OPT=" " + + # Target CPU ARCH options generally detected automatically from cross toolchain + # + # TODO: Rename USE=dynamic -> USE=cpudetection like dev-libs/gmp, media-video/ffmpeg? + # (may want to then restrict bindist w/ USE=-cpudetection.) + if use dynamic ; then + export DYNAMIC_ARCH=1 NO_AFFINITY=1 TARGET=GENERIC + fi + + export NUM_PARALLEL=${OPENBLAS_NPARALLEL:-8} NUM_THREADS=${OPENBLAS_NTHREAD:-64} + + # Allow setting OPENBLAS_TARGET to override auto detection in case the + # toolchain is not enough to detect. + # https://github.com/xianyi/OpenBLAS/blob/develop/TargetList.txt + if ! use dynamic && [[ ! -z "${OPENBLAS_TARGET}" ]] ; then + export TARGET="${OPENBLAS_TARGET}" + fi + + export NO_STATIC=1 + export BUILD_RELAPACK=$(usex relapack 1 0) + export PREFIX="${EPREFIX}/usr" +} + +src_compil
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/, sci-libs/openblas/files/
commit: dfaceb09f2a92eb81e7e0321df45d9088d93e0c7 Author: Sam James gentoo org> AuthorDate: Mon Mar 4 11:37:23 2024 + Commit: Sam James gentoo org> CommitDate: Mon Mar 4 11:37:23 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfaceb09 sci-libs/openblas: drop 0.3.21-r1, 0.3.23 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 2 - .../files/openblas-0.3.12-shared-blas-lapack.patch | 36 -- .../openblas/files/openblas-0.3.21-clang16.patch | 581 - .../openblas/files/openblas-0.3.21-fix-loong.patch | 237 - .../files/openblas-0.3.23-parallel-make.patch | 67 --- sci-libs/openblas/openblas-0.3.21-r1.ebuild| 197 --- sci-libs/openblas/openblas-0.3.23.ebuild | 199 --- 7 files changed, 1319 deletions(-) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index a2e94a5499c4..62f8bbbfc4b8 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,4 +1,2 @@ DIST OpenBLAS-0.3.25.tar.gz 24073168 BLAKE2B c2a173b50f6931e7782c7d429487abd4b1a4ed05aec4f08febbc5cc73b9ed5cb36c9e308bf7cb89ce116b1c25556615d2384087cf7d1b489a4784901951558bc SHA512 69bcf8082575b01ce1734fc9d33454314964a7e81ff29a7c1a764af3083ac0dc24289fd72bbe22c9583398bda7b658d6e4ab1d5036e43412745f0be3c2185b3c DIST OpenBLAS-0.3.26.tar.gz 24404912 BLAKE2B d72f02492b3ce58c5012943ea84190cb8a8efdfe438fb4fe945a713e4abbcb77f3a0603ca266df234efe8e6d6e4bab4a7386ac02b95512281165bf7ae2f9181d SHA512 01d3a536fbfa62f276fd6b1ad0e218fb3d91f41545fc83ddc74979fa26372d8389f0baa20334badfe0adacd77bd944c50a47ac920577373fcc1d495553084373 -DIST openblas-0.3.21.tar.gz 23729571 BLAKE2B 678bfb13ead69045e7d4d840bbcaed884d9ebedded5425cfa1f55e3d85bda31a3eb43dbbf9f07099d0d198f97ae68ef3b3b2b78aa1bd5b4999dd729dc08f7e28 SHA512 4625c8e6ccfa9120281fd714d3f6b7c3ba2265470c1be76121d6b25dc3dacb899d26e5d9a417ddc616d23909f1411495aa995ef8d8d6df8511cd5cefbabcb1c5 -DIST openblas-0.3.23.tar.gz 23950794 BLAKE2B 8394e09c682bba10450248cbbe090bb81c26661eac7d238942055ae0eecce752c8a3481af905de9efe20fe635f2c4a0e06af83bb64c998ab410e4cdc56751a47 SHA512 ea64c693e57eb63cc2a88e4d6ab2d8cf9ab84ae6a15048fb12090a3570dd41053e62e99c1ff9d3e02dd67ca93233591ab41b8c017d06585d0a69222e1ad3023f diff --git a/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch b/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch deleted file mode 100644 index 55fb7d7c66ca.. --- a/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff --git a/interface/Makefile b/interface/Makefile -index 6b247b4..1297c73 100644 a/interface/Makefile -+++ b/interface/Makefile -@@ -330,7 +330,7 @@ CCBLAS3OBJS = \ - cblas_chemm.$(SUFFIX) cblas_cherk.$(SUFFIX) cblas_cher2k.$(SUFFIX) \ - cblas_comatcopy.$(SUFFIX) cblas_cimatcopy.$(SUFFIX)\ - cblas_cgeadd.$(SUFFIX) -- -+ - CXERBLAOBJ = \ - cblas_xerbla.$(SUFFIX) - -@@ -2310,3 +2310,22 @@ cblas_zgeadd.$(SUFFIX) cblas_zgeadd.$(PSUFFIX) : zgeadd.c - cblas_xerbla.$(SUFFIX) cblas_xerbla.$(PSUFFIX) : xerbla.c - $(CC) -c $(CFLAGS) -DCBLAS $< -o $(@F) - -+# -+shared-blas-lapack: libblas.so.3 libcblas.so.3 liblapack.so.3 liblapacke.so.3 -+ -+# The list of prerequisite is created by comparing with NETLIB BLAS public API. -+libblas.so.3: $(SBLAS1OBJS) $(SBLAS2OBJS) $(SBLAS3OBJS) $(DBLAS1OBJS) $(DBLAS2OBJS) $(DBLAS3OBJS) $(CBLAS1OBJS) $(CBLAS2OBJS) $(CBLAS3OBJS) $(ZBLAS1OBJS) $(ZBLAS2OBJS) $(ZBLAS3OBJS) ../kernel/lsame.o ../kernel/scabs1.o ../kernel/dcabs1.o ../driver/others/xerbla.o -+ $(CC) $(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) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,libcblas.so.3 -L.. -lopenblas $(EXTRALIB) -+ -+# The prerequisites must match the symbols deleted in target delete-duplicate-lapack-objects -+liblapack.so.3: $(SLAPACKOBJS) $(DLAPACKOBJS) $(CLAPACKOBJS) $(ZLAPACKOBJS) ../kernel/lsame.o ../driver/others/xerbla.o -+ $(CC) $(LDFLAGS) -shared -o $@ $^ ../lapack-netlib/SRC/*.o -Wl,-soname,liblapack.so.3 -L.. -lopenblas $(EXTRALIB) -+ -+liblapacke.so.3: liblapack.so.3 -+ $(CC) $(LDFLAGS) -shared -o $@ `find ../lapack-netlib/LAPACKE -name "*.o"` -Wl,-soname,liblapacke.so.3 -L.. -lopenblas $(EXTRALIB) -+ -+clean:: -+ rm -f libblas.so.3 libcblas.so.3 liblapack.so.3 diff --git a/sci-libs/openblas/files/openblas-0.3.21-clang16.patch b/sci-libs/openblas/files/openblas-0.3.21-clang16.patch deleted file mode 100644 index 051966b0a870.. --- a/sci-libs/openblas/files/openblas-0.3.21-clang16.patch +++ /dev/null @@ -1,5
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: c3c4eb38f145134cf8cbd2953ad3241112589713 Author: Sam James gentoo org> AuthorDate: Sat Feb 3 19:06:27 2024 + Commit: Sam James gentoo org> CommitDate: Sat Feb 3 19:08:04 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3c4eb38 sci-libs/openblas: Stabilize 0.3.25-r1 amd64, #923533 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.25-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.25-r1.ebuild b/sci-libs/openblas/openblas-0.3.25-r1.ebuild index c32ecf3ad4d7..da08897df4c6 100644 --- a/sci-libs/openblas/openblas-0.3.25-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.25-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,7 +13,7 @@ S="${WORKDIR}"/${MY_P} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 82b9b4ee41cbeb4ca7507ad754d266156156e473 Author: Sam James gentoo org> AuthorDate: Wed Jan 3 09:47:47 2024 + Commit: Sam James gentoo org> CommitDate: Wed Jan 3 09:48:27 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82b9b4ee sci-libs/openblas: add 0.3.26 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.26.ebuild | 197 +++ 2 files changed, 198 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 7517619835d4..a2e94a5499c4 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,3 +1,4 @@ DIST OpenBLAS-0.3.25.tar.gz 24073168 BLAKE2B c2a173b50f6931e7782c7d429487abd4b1a4ed05aec4f08febbc5cc73b9ed5cb36c9e308bf7cb89ce116b1c25556615d2384087cf7d1b489a4784901951558bc SHA512 69bcf8082575b01ce1734fc9d33454314964a7e81ff29a7c1a764af3083ac0dc24289fd72bbe22c9583398bda7b658d6e4ab1d5036e43412745f0be3c2185b3c +DIST OpenBLAS-0.3.26.tar.gz 24404912 BLAKE2B d72f02492b3ce58c5012943ea84190cb8a8efdfe438fb4fe945a713e4abbcb77f3a0603ca266df234efe8e6d6e4bab4a7386ac02b95512281165bf7ae2f9181d SHA512 01d3a536fbfa62f276fd6b1ad0e218fb3d91f41545fc83ddc74979fa26372d8389f0baa20334badfe0adacd77bd944c50a47ac920577373fcc1d495553084373 DIST openblas-0.3.21.tar.gz 23729571 BLAKE2B 678bfb13ead69045e7d4d840bbcaed884d9ebedded5425cfa1f55e3d85bda31a3eb43dbbf9f07099d0d198f97ae68ef3b3b2b78aa1bd5b4999dd729dc08f7e28 SHA512 4625c8e6ccfa9120281fd714d3f6b7c3ba2265470c1be76121d6b25dc3dacb899d26e5d9a417ddc616d23909f1411495aa995ef8d8d6df8511cd5cefbabcb1c5 DIST openblas-0.3.23.tar.gz 23950794 BLAKE2B 8394e09c682bba10450248cbbe090bb81c26661eac7d238942055ae0eecce752c8a3481af905de9efe20fe635f2c4a0e06af83bb64c998ab410e4cdc56751a47 SHA512 ea64c693e57eb63cc2a88e4d6ab2d8cf9ab84ae6a15048fb12090a3570dd41053e62e99c1ff9d3e02dd67ca93233591ab41b8c017d06585d0a69222e1ad3023f diff --git a/sci-libs/openblas/openblas-0.3.26.ebuild b/sci-libs/openblas/openblas-0.3.26.ebuild new file mode 100644 index ..428b2378aba7 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.26.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic fortran-2 toolchain-funcs + +MY_P=OpenBLAS-${PV} +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="https://github.com/xianyi/OpenBLAS"; +SRC_URI="https://github.com/OpenMathLib/OpenBLAS/releases/download/v${PV}/${MY_P}.tar.gz"; +S="${WORKDIR}"/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.23-shared-blas-lapack.patch" +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + + fortran-2_pkg_setup +} + +src_prepare() { + default + + # TODO: Unbundle lapack like Fedora does? + # https://src.fedoraproject.org/rpms/openblas/blob/rawhide/f/openblas-0.2.15-system_lapack.patch + + # Don't build the tests as part of "make all". We'll do + # it explicitly later if the test phase is enabled. + sed -i -e "/^all :: tests/s: tests::g" Makefile || die + + # If 64bit-index is needed, create second library with LIBPREFIX=libopenblas64 + if use index-64bit; then + cp -aL "${S}" "${S}-index-64bit" || die + fi +} + +src_configure() { + # List of most configurable options is in Makefile.rule. + + # Not an easy fix, https://github.com/xianyi/OpenBLAS/issues/4128 + filter-lto + + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC="$(tc-getB
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 58e93ce12e6cbb84f05ac4f3dc71fadcad65c5ee Author: Sam James gentoo org> AuthorDate: Mon Dec 18 00:10:59 2023 + Commit: Sam James gentoo org> CommitDate: Mon Dec 18 00:10:59 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e93ce1 sci-libs/openblas: Stabilize 0.3.23 amd64, #920152 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.23.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.23.ebuild b/sci-libs/openblas/openblas-0.3.23.ebuild index 7664d34d5737..77e8c99cc2f2 100644 --- a/sci-libs/openblas/openblas-0.3.23.ebuild +++ b/sci-libs/openblas/openblas-0.3.23.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 12946040c32b8dc20bd88dba595cd4a8f0608cc5 Author: Sam James gentoo org> AuthorDate: Sat Nov 25 11:45:30 2023 + Commit: Sam James gentoo org> CommitDate: Sat Nov 25 12:14:00 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12946040 sci-libs/openblas: fix USE=index-64bit Closes: https://bugs.gentoo.org/917337 Signed-off-by: Sam James gentoo.org> .../{openblas-0.3.25.ebuild => openblas-0.3.25-r1.ebuild} | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.25.ebuild b/sci-libs/openblas/openblas-0.3.25-r1.ebuild similarity index 93% rename from sci-libs/openblas/openblas-0.3.25.ebuild rename to sci-libs/openblas/openblas-0.3.25-r1.ebuild index 904044a4d4ff..c32ecf3ad4d7 100644 --- a/sci-libs/openblas/openblas-0.3.25.ebuild +++ b/sci-libs/openblas/openblas-0.3.25-r1.ebuild @@ -126,7 +126,7 @@ src_compile() { if use index-64bit; then emake -C "${S}-index-64bit" \ INTERFACE64=1 \ - LIBPREFIX=libopenblas64 + LIBPREFIX=libopenblas64 shared fi } @@ -148,15 +148,15 @@ src_install() { if use eselect-ldso; then insinto /usr/$(get_libdir)/blas/openblas/ doins interface/libblas.so.3 - dosym libblas.so.3 usr/$(get_libdir)/blas/openblas/libblas.so + dosym -r /usr/$(get_libdir)/libblas.so.3 /usr/$(get_libdir)/blas/openblas/libblas.so doins interface/libcblas.so.3 - dosym libcblas.so.3 usr/$(get_libdir)/blas/openblas/libcblas.so + dosym -r /usr/$(get_libdir)/libcblas.so.3 /usr/$(get_libdir)/blas/openblas/libcblas.so insinto /usr/$(get_libdir)/lapack/openblas/ doins interface/liblapack.so.3 - dosym liblapack.so.3 usr/$(get_libdir)/lapack/openblas/liblapack.so + dosym -r /usr/$(get_libdir)/liblapack.so.3 /usr/$(get_libdir)/lapack/openblas/liblapack.so doins interface/liblapacke.so.3 - dosym liblapacke.so.3 usr/$(get_libdir)/lapack/openblas/liblapacke.so + dosym -r /usr/$(get_libdir)/liblapacke.so.3 /usr/$(get_libdir)/lapack/openblas/liblapacke.so fi }
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 4098e697f99a5e593bb4b5446be546083b656139 Author: Sam James gentoo org> AuthorDate: Mon Nov 13 03:10:06 2023 + Commit: Sam James gentoo org> CommitDate: Mon Nov 13 03:20:04 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4098e697 sci-libs/openblas: add 0.3.25 * Add some TODOs wrt unbundling lapack and renaming USE=dynamic -> USE=cpudetection like gmp and ffmpeg (should then restrict bindist w/ USE=-cpudetection). * Move most bits out of pkg_setup as configuration doesn't belong there. * Drops obsolete upstreamed patches. * Fix tests sed. Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.25.ebuild | 197 +++ 2 files changed, 198 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index ba6ab6c54c50..7517619835d4 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,2 +1,3 @@ +DIST OpenBLAS-0.3.25.tar.gz 24073168 BLAKE2B c2a173b50f6931e7782c7d429487abd4b1a4ed05aec4f08febbc5cc73b9ed5cb36c9e308bf7cb89ce116b1c25556615d2384087cf7d1b489a4784901951558bc SHA512 69bcf8082575b01ce1734fc9d33454314964a7e81ff29a7c1a764af3083ac0dc24289fd72bbe22c9583398bda7b658d6e4ab1d5036e43412745f0be3c2185b3c DIST openblas-0.3.21.tar.gz 23729571 BLAKE2B 678bfb13ead69045e7d4d840bbcaed884d9ebedded5425cfa1f55e3d85bda31a3eb43dbbf9f07099d0d198f97ae68ef3b3b2b78aa1bd5b4999dd729dc08f7e28 SHA512 4625c8e6ccfa9120281fd714d3f6b7c3ba2265470c1be76121d6b25dc3dacb899d26e5d9a417ddc616d23909f1411495aa995ef8d8d6df8511cd5cefbabcb1c5 DIST openblas-0.3.23.tar.gz 23950794 BLAKE2B 8394e09c682bba10450248cbbe090bb81c26661eac7d238942055ae0eecce752c8a3481af905de9efe20fe635f2c4a0e06af83bb64c998ab410e4cdc56751a47 SHA512 ea64c693e57eb63cc2a88e4d6ab2d8cf9ab84ae6a15048fb12090a3570dd41053e62e99c1ff9d3e02dd67ca93233591ab41b8c017d06585d0a69222e1ad3023f diff --git a/sci-libs/openblas/openblas-0.3.25.ebuild b/sci-libs/openblas/openblas-0.3.25.ebuild new file mode 100644 index ..904044a4d4ff --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.25.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic fortran-2 toolchain-funcs + +MY_P=OpenBLAS-${PV} +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="https://github.com/xianyi/OpenBLAS"; +SRC_URI="https://github.com/OpenMathLib/OpenBLAS/releases/download/v${PV}/${MY_P}.tar.gz"; +S="${WORKDIR}"/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.23-shared-blas-lapack.patch" +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + + fortran-2_pkg_setup +} + +src_prepare() { + default + + # TODO: Unbundle lapack like Fedora does? + # https://src.fedoraproject.org/rpms/openblas/blob/rawhide/f/openblas-0.2.15-system_lapack.patch + + # Don't build the tests as part of "make all". We'll do + # it explicitly later if the test phase is enabled. + sed -i -e "/^all :: tests/s: tests::g" Makefile || die + + # If 64bit-index is needed, create second library with LIBPREFIX=libopenblas64 + if use index-64bit; then + cp -aL "${S}" "${S}-index-64bit" || die + fi +} + +src_configure() { + # List of most configurable options is in Makefile.rule. + + # Not an easy fix, https://github.com/xianyi/OpenBLAS/issues/4128 + filter-lto + + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC="$(tc-getBUILD_CC)" + + # T
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: c730b8fb4941b27b62b776f61ced930f2fbbd64b Author: Michael Orlitzky gentoo org> AuthorDate: Mon Jul 17 02:56:35 2023 + Commit: Michael Orlitzky gentoo org> CommitDate: Mon Jul 17 02:56:35 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c730b8fb sci-libs/openblas: don't build tests in src_compile. Bug: https://bugs.gentoo.org/910415 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.23.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.23.ebuild b/sci-libs/openblas/openblas-0.3.23.ebuild index 0e178b25b5a8..7664d34d5737 100644 --- a/sci-libs/openblas/openblas-0.3.23.ebuild +++ b/sci-libs/openblas/openblas-0.3.23.ebuild @@ -122,7 +122,7 @@ src_prepare() { } src_compile() { - default + emake shared use eselect-ldso && emake -C interface shared-blas-lapack if use index-64bit; then
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/, sci-libs/openblas/
commit: 0bb4197bb27d2103d9cd548d43ee7bd77942f51b Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jul 13 18:31:54 2023 + Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jul 13 18:54:57 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bb4197b sci-libs/openblas: improved parallel build fix. Bug: https://bugs.gentoo.org/910174 Signed-off-by: Michael Orlitzky gentoo.org> .../files/openblas-0.3.23-parallel-make.patch | 67 ++ sci-libs/openblas/openblas-0.3.23.ebuild | 4 +- 2 files changed, 69 insertions(+), 2 deletions(-) diff --git a/sci-libs/openblas/files/openblas-0.3.23-parallel-make.patch b/sci-libs/openblas/files/openblas-0.3.23-parallel-make.patch new file mode 100644 index ..ce0487a6b2c0 --- /dev/null +++ b/sci-libs/openblas/files/openblas-0.3.23-parallel-make.patch @@ -0,0 +1,67 @@ +From 281e834566a06f1c756d262dc31e809faaf8933f Mon Sep 17 00:00:00 2001 +From: Guillaume Horel +Date: Thu, 30 Mar 2023 15:15:25 -0400 +Subject: [PATCH 1/2] do not pass -j flag to the MAKE variable + +--- + getarch.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/getarch.c b/getarch.c +index 937a8db68c..87384c0840 100644 +--- a/getarch.c b/getarch.c +@@ -1930,15 +1930,15 @@ printf("ELF_VERSION=2\n"); + + #ifdef MAKE_NB_JOBS + #if MAKE_NB_JOBS > 0 +-printf("MAKE += -j %d\n", MAKE_NB_JOBS); ++printf("MAKEFLAGS += -j %d\n", MAKE_NB_JOBS); + #else + // Let make use parent -j argument or -j1 if there + // is no make parent + #endif + #elif NO_PARALLEL_MAKE==1 +-printf("MAKE += -j 1\n"); ++printf("MAKEFLAGS += -j 1\n"); + #else +-printf("MAKE += -j %d\n", get_num_cores()); ++printf("MAKEFLAGS += -j %d\n", get_num_cores()); + #endif + + break; + +From 397108fba299c87ce17957452d57469af914f516 Mon Sep 17 00:00:00 2001 +From: Guillaume Horel +Date: Fri, 31 Mar 2023 09:22:40 -0400 +Subject: [PATCH 2/2] serialize shared prerequisites + +--- + Makefile | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index 144b3400db..3c4b8948af 100644 +--- a/Makefile b/Makefile +@@ -40,9 +40,9 @@ LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -O -Og -Os,$(LAPACK_FFLAGS)) + SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test + + .PHONY : all libs netlib $(RELA) test ctest shared install +-.NOTPARALLEL : all libs $(RELA) prof lapack-test install blas-test ++.NOTPARALLEL : shared + +-all :: libs netlib $(RELA) tests shared ++all :: tests + @echo + @echo " OpenBLAS build complete. ($(LIB_COMPONENTS))" + @echo +@@ -150,7 +150,7 @@ ifeq ($(OSNAME), CYGWIN_NT) + endif + endif + +-tests : libs netlib $(RELA) shared ++tests : shared + ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN))) + touch $(LIBNAME) + ifndef NO_FBLAS diff --git a/sci-libs/openblas/openblas-0.3.23.ebuild b/sci-libs/openblas/openblas-0.3.23.ebuild index 0324e3a62e4c..0e178b25b5a8 100644 --- a/sci-libs/openblas/openblas-0.3.23.ebuild +++ b/sci-libs/openblas/openblas-0.3.23.ebuild @@ -28,6 +28,7 @@ BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}/${PN}-0.3.23-shared-blas-lapack.patch" "${FILESDIR}/${PN}-0.3.21-fix-loong.patch" + "${FILESDIR}/${PN}-0.3.23-parallel-make.patch" ) pkg_pretend() { @@ -132,8 +133,7 @@ src_compile() { } src_test() { - # https://github.com/xianyi/OpenBLAS/issues/4139 - emake -j1 tests + emake tests } src_install() {
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 1bb87cbc93f5de9323dd7e4bea1fbd29164c757d Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jul 13 00:41:52 2023 + Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jul 13 00:46:04 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bb87cbc sci-libs/openblas: work around test parallelism issue. Something weird is going on when we run "make tests" and the solution isn't obvious to me, so let's -j1 it for now. Unrelated to that, we don't need to build our custom shared-blas-lapack target unless USE=eselect-ldso is set, so let's not. Closes: https://bugs.gentoo.org/910174 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.23.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.23.ebuild b/sci-libs/openblas/openblas-0.3.23.ebuild index 7638b7e3d707..0324e3a62e4c 100644 --- a/sci-libs/openblas/openblas-0.3.23.ebuild +++ b/sci-libs/openblas/openblas-0.3.23.ebuild @@ -122,8 +122,7 @@ src_prepare() { src_compile() { default - cd interface || die - emake shared-blas-lapack + use eselect-ldso && emake -C interface shared-blas-lapack if use index-64bit; then emake -C"${S}-index-64bit" \ @@ -133,7 +132,8 @@ src_compile() { } src_test() { - emake tests + # https://github.com/xianyi/OpenBLAS/issues/4139 + emake -j1 tests } src_install() {
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 6a29b8c181bb98a32bc2a7c21589631d93ea6880 Author: Michael Orlitzky gentoo org> AuthorDate: Sun Jul 9 16:16:54 2023 + Commit: Michael Orlitzky gentoo org> CommitDate: Sun Jul 9 16:19:36 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a29b8c1 sci-libs/openblas: disable LTO for now. There's an upstream issue open for the type mismatches, but it doesn't look like an easy fix. For now we work around it by disabling LTO, which disables -Werror=lto-type-mismatch as well. Closes: https://bugs.gentoo.org/878987 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.23.ebuild | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.23.ebuild b/sci-libs/openblas/openblas-0.3.23.ebuild index a29cc595fcae..7638b7e3d707 100644 --- a/sci-libs/openblas/openblas-0.3.23.ebuild +++ b/sci-libs/openblas/openblas-0.3.23.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit fortran-2 toolchain-funcs +inherit flag-o-matic fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" HOMEPAGE="https://github.com/xianyi/OpenBLAS"; @@ -53,6 +53,9 @@ pkg_setup() { # List of most configurable options - Makefile.rule + # not an easy fix, https://github.com/xianyi/OpenBLAS/issues/4128 + filter-lto + # https://github.com/xianyi/OpenBLAS/pull/2663 tc-export CC FC LD AR AS RANLIB
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/
commit: b3af2faefa111cdc72f70001340793f9a4658c8e Author: Michael Mair-Keimberger levelnine at> AuthorDate: Sat Jul 8 08:50:37 2023 + Commit: Conrad Kostecki gentoo org> CommitDate: Sat Jul 8 18:05:28 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3af2fae sci-libs/openblas: remove unused patches Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/31800 Signed-off-by: Conrad Kostecki 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.. --- 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 -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 -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 -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 ($(CO
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 3b650a97595d7d68aba803e7876bad98c2269c06 Author: Michael Orlitzky gentoo org> AuthorDate: Fri Jul 7 00:21:07 2023 + Commit: Michael Orlitzky gentoo org> CommitDate: Fri Jul 7 00:28:56 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b650a97 sci-libs/openblas: drop 0.3.18, 0.3.19, 0.3.20, 0.3.21 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/Manifest | 3 - sci-libs/openblas/openblas-0.3.18.ebuild | 199 -- sci-libs/openblas/openblas-0.3.19.ebuild | 199 -- sci-libs/openblas/openblas-0.3.20.ebuild | 201 --- sci-libs/openblas/openblas-0.3.21.ebuild | 196 -- 5 files changed, 798 deletions(-) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 7aa1f78efac0..ba6ab6c54c50 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,5 +1,2 @@ -DIST openblas-0.3.18.tar.gz 12619822 BLAKE2B 38a5e7b861eb0063a4494c1cfb6f7f5723741437ecdd5cb1fb42645eb73bceb472b3a8c11eec3d0ba4f676981ac89de4ff1ee0d7ea42d1e234746f34ce8fb6b8 SHA512 df9a14026a61bdc5285636bfd7a52dce244d24fcf4a0c870ef4e58b8b50e412849828ca5aeac2a2435f635e78e60559762e8bae22ea7bc5dff2e865a96d81152 -DIST openblas-0.3.19.tar.gz 12706050 BLAKE2B c29aa27faaf18e3330087f8d2ebed733f53878266d6865239dfbb1624a113f3cabc988bbfcc18a0aa5d971697bc68bb267795ef24e2d8e0e8d50f802cb817b57 SHA512 1fcbcfefb7744894b0b0c83c6071b342086ca311dc67f5c2745812d61dcc9d31ef7dd5e1215dfb2731ae7197d497dbdf8f8b26a432eb07d41a7db0983eb86a33 -DIST openblas-0.3.20.tar.gz 12742441 BLAKE2B 9ae808e2a7da39e28dbe26c7feb5da3c70275f3b48bd68455c22e3b16fc1f2d10b9d84c9593acff2c837fc1514f21f2bbc0e87708075c5fe13514d0d47cf0b5a SHA512 0742d40b74b11b781021280fd627fa5798e6856b49f2baa5927aac1a7823bcb8162187555f4cf3a4dd7eadf5b1f2a4685c0b5e189847b2869166d1bc7391 DIST openblas-0.3.21.tar.gz 23729571 BLAKE2B 678bfb13ead69045e7d4d840bbcaed884d9ebedded5425cfa1f55e3d85bda31a3eb43dbbf9f07099d0d198f97ae68ef3b3b2b78aa1bd5b4999dd729dc08f7e28 SHA512 4625c8e6ccfa9120281fd714d3f6b7c3ba2265470c1be76121d6b25dc3dacb899d26e5d9a417ddc616d23909f1411495aa995ef8d8d6df8511cd5cefbabcb1c5 DIST openblas-0.3.23.tar.gz 23950794 BLAKE2B 8394e09c682bba10450248cbbe090bb81c26661eac7d238942055ae0eecce752c8a3481af905de9efe20fe635f2c4a0e06af83bb64c998ab410e4cdc56751a47 SHA512 ea64c693e57eb63cc2a88e4d6ab2d8cf9ab84ae6a15048fb12090a3570dd41053e62e99c1ff9d3e02dd67ca93233591ab41b8c017d06585d0a69222e1ad3023f diff --git a/sci-libs/openblas/openblas-0.3.18.ebuild b/sci-libs/openblas/openblas-0.3.18.ebuild deleted file mode 100644 index 31488ab8cb0d.. --- a/sci-libs/openblas/openblas-0.3.18.ebuild +++ /dev/null @@ -1,199 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic fortran-2 toolchain-funcs - -DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.io/OpenBLAS/"; -SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/OpenBLAS-${PV} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" -REQUIRED_USE="?? ( openmp pthread )" -RESTRICT="!test? ( test )" - -RDEPEND=" - eselect-ldso? ( - >=app-eselect/eselect-blas-0.2 - >=app-eselect/eselect-lapack-0.2 - ) -" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" -) - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp - - elog "This software has a massive number of options that" - elog "are configurable and it is *impossible* for all of" - elog "those to fit inside any manageable ebuild." - elog "The Gentoo provided package has enough to build" - elog "a fully optimized library for your targeted CPU." - elog "You can set the CPU target using the environment" - elog "variable - OPENBLAS_TARGET or it will be detected" - elog "automatically from the target toolchain (supports" - elog "cross compilation toolchains)." - elog "You can control the maximum number of threads" - elog "using OPENBLAS_NTHREAD, default=64 and number of " - elog "parallel calls to allow before further calls wait" - elog "using OPENBLAS_NPARALLEL, default=8." -} - -pkg_setup() { - fortran-2_pkg_setup - - # List of most configurable options - Makefile.rule - - # https://github.com/xianyi/OpenBLAS/pull/2663 - tc-export CC FC LD AR AS RANLIB - - # HOSTCC is used for scripting - export HOSTCC="$(tc-getBUILD_CC)" - - # threading options - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp - USE_THREAD=0 - if use openmp;
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/, sci-libs/openblas/
commit: 044b72e595e46ae602b22fc542b93008ec7ebad8 Author: Michael Orlitzky gentoo org> AuthorDate: Fri Jul 7 00:03:49 2023 + Commit: Michael Orlitzky gentoo org> CommitDate: Fri Jul 7 00:28:46 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=044b72e5 sci-libs/openblas: add 0.3.23 All this really needed was a rebase of the shared-lib patch. The loong arch patch still applies, albeit with fuzz. The strict-aliasing warnings from bug 862909 also seem gone, probably as part of the underlying lapack upgrade. Closes: https://bugs.gentoo.org/862909 Closes: https://bugs.gentoo.org/905277 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/Manifest | 1 + .../files/openblas-0.3.23-shared-blas-lapack.patch | 40 + sci-libs/openblas/openblas-0.3.23.ebuild | 196 + 3 files changed, 237 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 95fc46d6f9d5..7aa1f78efac0 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -2,3 +2,4 @@ DIST openblas-0.3.18.tar.gz 12619822 BLAKE2B 38a5e7b861eb0063a4494c1cfb6f7f57237 DIST openblas-0.3.19.tar.gz 12706050 BLAKE2B c29aa27faaf18e3330087f8d2ebed733f53878266d6865239dfbb1624a113f3cabc988bbfcc18a0aa5d971697bc68bb267795ef24e2d8e0e8d50f802cb817b57 SHA512 1fcbcfefb7744894b0b0c83c6071b342086ca311dc67f5c2745812d61dcc9d31ef7dd5e1215dfb2731ae7197d497dbdf8f8b26a432eb07d41a7db0983eb86a33 DIST openblas-0.3.20.tar.gz 12742441 BLAKE2B 9ae808e2a7da39e28dbe26c7feb5da3c70275f3b48bd68455c22e3b16fc1f2d10b9d84c9593acff2c837fc1514f21f2bbc0e87708075c5fe13514d0d47cf0b5a SHA512 0742d40b74b11b781021280fd627fa5798e6856b49f2baa5927aac1a7823bcb8162187555f4cf3a4dd7eadf5b1f2a4685c0b5e189847b2869166d1bc7391 DIST openblas-0.3.21.tar.gz 23729571 BLAKE2B 678bfb13ead69045e7d4d840bbcaed884d9ebedded5425cfa1f55e3d85bda31a3eb43dbbf9f07099d0d198f97ae68ef3b3b2b78aa1bd5b4999dd729dc08f7e28 SHA512 4625c8e6ccfa9120281fd714d3f6b7c3ba2265470c1be76121d6b25dc3dacb899d26e5d9a417ddc616d23909f1411495aa995ef8d8d6df8511cd5cefbabcb1c5 +DIST openblas-0.3.23.tar.gz 23950794 BLAKE2B 8394e09c682bba10450248cbbe090bb81c26661eac7d238942055ae0eecce752c8a3481af905de9efe20fe635f2c4a0e06af83bb64c998ab410e4cdc56751a47 SHA512 ea64c693e57eb63cc2a88e4d6ab2d8cf9ab84ae6a15048fb12090a3570dd41053e62e99c1ff9d3e02dd67ca93233591ab41b8c017d06585d0a69222e1ad3023f diff --git a/sci-libs/openblas/files/openblas-0.3.23-shared-blas-lapack.patch b/sci-libs/openblas/files/openblas-0.3.23-shared-blas-lapack.patch new file mode 100644 index ..4d200d3b3960 --- /dev/null +++ b/sci-libs/openblas/files/openblas-0.3.23-shared-blas-lapack.patch @@ -0,0 +1,40 @@ +From b3b59749a0df9c2375f1c99adb8552f698eba6d6 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +Date: Thu, 6 Jul 2023 15:54:30 -0400 +Subject: [PATCH] interface/Makefile: add shared library targets. + +Gentoo patch for shared library support. +--- + interface/Makefile | 19 +++ + 1 file changed, 19 insertions(+) + +diff --git a/interface/Makefile b/interface/Makefile +index 2ac9663..63bcb24 100644 +--- a/interface/Makefile b/interface/Makefile +@@ -2384,3 +2384,22 @@ cblas_zgeadd.$(SUFFIX) cblas_zgeadd.$(PSUFFIX) : zgeadd.c + cblas_xerbla.$(SUFFIX) cblas_xerbla.$(PSUFFIX) : xerbla.c + $(CC) -c $(CFLAGS) -DCBLAS $< -o $(@F) + ++# ++shared-blas-lapack: libblas.so.3 libcblas.so.3 liblapack.so.3 liblapacke.so.3 ++ ++# The list of prerequisite is created by comparing with NETLIB BLAS public API. ++libblas.so.3: $(SBLAS1OBJS) $(SBLAS2OBJS) $(SBLAS3OBJS) $(DBLAS1OBJS) $(DBLAS2OBJS) $(DBLAS3OBJS) $(CBLAS1OBJS) $(CBLAS2OBJS) $(CBLAS3OBJS) $(ZBLAS1OBJS) $(ZBLAS2OBJS) $(ZBLAS3OBJS) ../kernel/lsame.o ../kernel/scabs1.o ../kernel/dcabs1.o ../driver/others/xerbla.o ++ $(CC) $(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) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,libcblas.so.3 -L.. -lopenblas $(EXTRALIB) ++ ++# The prerequisites must match the symbols deleted in target delete-duplicate-lapack-objects ++liblapack.so.3: $(SLAPACKOBJS) $(DLAPACKOBJS) $(CLAPACKOBJS) $(ZLAPACKOBJS) ../kernel/lsame.o ../driver/others/xerbla.o ++ $(CC) $(LDFLAGS) -shared -o $@ $^ ../lapack-netlib/SRC/*.o -Wl,-soname,liblapack.so.3 -L.. -lopenblas $(EXTRALIB) ++ ++liblapacke.so.3: liblapack.so.3 ++ $(CC) $(LDFLAGS) -shared -o $@ `find ../lapack-netlib/LAPACKE -name "*.o"` -Wl,-soname,liblapacke.so.3 -L.. -lopenblas $(EXTRALIB) ++ ++clean:: ++ rm -f libblas.so.3 libcblas.so.3 liblapack.so.3 +-- +2.39.3 + diff --git a/sci-libs/openblas/openblas-0.3.23.ebuil
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 64e9c6d240eeec2b6914b03bbc41b5746d43901f Author: Sam James gentoo org> AuthorDate: Tue Mar 7 15:44:50 2023 + Commit: Sam James gentoo org> CommitDate: Tue Mar 7 15:44:50 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64e9c6d2 sci-libs/openblas: Stabilize 0.3.21-r1 amd64, #899456 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.21-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.21-r1.ebuild b/sci-libs/openblas/openblas-0.3.21-r1.ebuild index f8be930b1154..c5a1707e33da 100644 --- a/sci-libs/openblas/openblas-0.3.21-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.21-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/, sci-libs/openblas/files/
commit: 8cc06c76d23108166460e051d7ac5d20ab0b9666 Author: Sam James gentoo org> AuthorDate: Tue Nov 22 23:41:25 2022 + Commit: Sam James gentoo org> CommitDate: Tue Nov 22 23:41:25 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cc06c76 sci-libs/openblas: fix build w/ clang 16 Signed-off-by: Sam James gentoo.org> .../openblas/files/openblas-0.3.21-clang16.patch | 581 + sci-libs/openblas/openblas-0.3.21-r1.ebuild| 197 +++ 2 files changed, 778 insertions(+) diff --git a/sci-libs/openblas/files/openblas-0.3.21-clang16.patch b/sci-libs/openblas/files/openblas-0.3.21-clang16.patch new file mode 100644 index ..051966b0a870 --- /dev/null +++ b/sci-libs/openblas/files/openblas-0.3.21-clang16.patch @@ -0,0 +1,581 @@ +https://github.com/xianyi/OpenBLAS/commit/f703846ad9400a8ea175cb8dd43e18c152aeab93 +https://github.com/xianyi/OpenBLAS/commit/515cf269291bec0d43651fe7bf99a71fb074a0ad +https://github.com/xianyi/OpenBLAS/commit/91110f92d218492d0efbdc1fdf34277ca45f4b36 +https://github.com/xianyi/OpenBLAS/commit/9402df5604e69f86f58953e3883f33f98c930baf +https://github.com/xianyi/OpenBLAS/commit/101a2c77c3f3610933f450cefca3e312edab2186 +https://src.fedoraproject.org/rpms/openblas/c/5f27d51cebe1c1bb6598d38326ece8dc0ac71ec7?branch=rawhide + +From f703846ad9400a8ea175cb8dd43e18c152aeab93 Mon Sep 17 00:00:00 2001 +From: Martin Kroeker +Date: Sat, 13 Aug 2022 11:38:27 +0200 +Subject: [PATCH] Add function prototypes + +--- a/exports/gensymbol b/exports/gensymbol +@@ -4000,6 +4000,22 @@ case "$p1" in + no_underscore_objs="$no_underscore_objs $misc_common_objs" + + printf 'int main(void){\n' ++for obj in $underscore_objs; do ++[ "$obj" != "xerbla" ] && printf 'extern void %s%s%s%s();\n' \ ++"$symbolprefix" "$obj" "$bu" "$symbolsuffix" ++done ++ ++for obj in $need_2underscore_objs; do ++printf 'extern void %s%s%s%s%s();\n' \ ++"$symbolprefix" "$obj" "$bu" "$bu" "$symbolsuffix" ++done ++ ++for obj in $no_underscore_objs; do ++printf 'extern void %s%s%s();\n' \ ++"$symbolprefix" "$obj" "$symbolsuffix" ++done ++ ++printf '\n' + for obj in $underscore_objs; do + [ "$obj" != "xerbla" ] && printf '%s%s%s%s();\n' \ + "$symbolprefix" "$obj" "$bu" "$symbolsuffix" +--- a/exports/gensymbol.pl b/exports/gensymbol.pl +@@ -3955,6 +3955,18 @@ + @no_underscore_objs = (@no_underscore_objs, @misc_common_objs); + + print "int main(void){\n"; ++foreach $objs (@underscore_objs) { ++print "extern void ", $symbolprefix, $objs, $bu, $symbolsuffix, "();\n" if $objs ne "xerbla"; ++} ++ ++foreach $objs (@need_2underscore_objs) { ++print "extern void ", $symbolprefix, $objs, $bu, $bu, $symbolsuffix, "();\n"; ++} ++ ++foreach $objs (@no_underscore_objs) { ++print "extern void ", $symbolprefix, $objs, $symbolsuffix, "();\n"; ++} ++ + foreach $objs (@underscore_objs) { + print $symbolprefix, $objs, $bu, $symbolsuffix, "();\n" if $objs ne "xerbla"; + } + +From 515cf269291bec0d43651fe7bf99a71fb074a0ad Mon Sep 17 00:00:00 2001 +From: Martin Kroeker +Date: Wed, 14 Sep 2022 11:48:36 +0200 +Subject: [PATCH] Fix pointer/integer argument mismatch in calls to pow() + +--- a/lapack-netlib/SRC/claed0.c b/lapack-netlib/SRC/claed0.c +@@ -796,10 +796,10 @@ f"> */ + + temp = log((real) (*n)) / log(2.f); + lgn = (integer) temp; +-if (pow_ii(&c__2, &lgn) < *n) { ++if (pow_ii(c__2, lgn) < *n) { + ++lgn; + } +-if (pow_ii(&c__2, &lgn) < *n) { ++if (pow_ii(c__2, lgn) < *n) { + ++lgn; + } + iprmpt = indxq + *n + 1; +--- a/lapack-netlib/SRC/claed7.c b/lapack-netlib/SRC/claed7.c +@@ -864,11 +864,11 @@ f"> */ + /* Form the z-vector which consists of the last row of Q_1 and the */ + /* first row of Q_2. */ + +-ptr = pow_ii(&c__2, tlvls) + 1; ++ptr = pow_ii(c__2, *tlvls) + 1; + i__1 = *curlvl - 1; + for (i__ = 1; i__ <= i__1; ++i__) { + i__2 = *tlvls - i__; +- ptr += pow_ii(&c__2, &i__2); ++ ptr += pow_ii(c__2, i__2); + /* L10: */ + } + curr = ptr + *curpbm; +--- a/lapack-netlib/SRC/clalsa.c b/lapack-netlib/SRC/clalsa.c +@@ -1051,7 +1051,7 @@ f"> */ + /* Finally go through the left singular vector matrices of all */ + /* the other subproblems bottom-up on the tree. */ + +-j = pow_ii(&c__2, &nlvl); ++j = pow_ii(c__2, nlvl); + sqre = 0; + + for (lvl = nlvl; lvl >= 1; --lvl) { +@@ -1065,7 +1065,7 @@ f"> */ + ll = 1; + } else { + i__1 = lvl - 1; +- lf = pow_ii(&c__2, &i__1); ++ lf = pow_ii(c__2, i__1); + ll = (lf << 1) - 1; + } + i__1 = ll; +@@ -1110,7 +1110,7 @@ f"> */ + ll = 1; + } else { +
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/, sci-libs/openblas/files/
commit: 03f1689aa0d72075183bd999192a363994c41195 Author: Michael Orlitzky gentoo org> AuthorDate: Sat Nov 12 11:53:59 2022 + Commit: Michael Orlitzky gentoo org> CommitDate: Sat Nov 12 12:05:19 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03f1689a sci-libs/openblas: add 0.3.21 I had to rebase the loongarch patch, and removed an old workaround for FFLAGS="-fcheck=bounds" in the test suite, but other than that a standard update. Bug: https://bugs.gentoo.org/726474 Closes: https://bugs.gentoo.org/878883 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/Manifest | 1 + .../openblas/files/openblas-0.3.21-fix-loong.patch | 237 + sci-libs/openblas/openblas-0.3.21.ebuild | 196 + 3 files changed, 434 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 7f5369e57040..95fc46d6f9d5 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,3 +1,4 @@ DIST openblas-0.3.18.tar.gz 12619822 BLAKE2B 38a5e7b861eb0063a4494c1cfb6f7f5723741437ecdd5cb1fb42645eb73bceb472b3a8c11eec3d0ba4f676981ac89de4ff1ee0d7ea42d1e234746f34ce8fb6b8 SHA512 df9a14026a61bdc5285636bfd7a52dce244d24fcf4a0c870ef4e58b8b50e412849828ca5aeac2a2435f635e78e60559762e8bae22ea7bc5dff2e865a96d81152 DIST openblas-0.3.19.tar.gz 12706050 BLAKE2B c29aa27faaf18e3330087f8d2ebed733f53878266d6865239dfbb1624a113f3cabc988bbfcc18a0aa5d971697bc68bb267795ef24e2d8e0e8d50f802cb817b57 SHA512 1fcbcfefb7744894b0b0c83c6071b342086ca311dc67f5c2745812d61dcc9d31ef7dd5e1215dfb2731ae7197d497dbdf8f8b26a432eb07d41a7db0983eb86a33 DIST openblas-0.3.20.tar.gz 12742441 BLAKE2B 9ae808e2a7da39e28dbe26c7feb5da3c70275f3b48bd68455c22e3b16fc1f2d10b9d84c9593acff2c837fc1514f21f2bbc0e87708075c5fe13514d0d47cf0b5a SHA512 0742d40b74b11b781021280fd627fa5798e6856b49f2baa5927aac1a7823bcb8162187555f4cf3a4dd7eadf5b1f2a4685c0b5e189847b2869166d1bc7391 +DIST openblas-0.3.21.tar.gz 23729571 BLAKE2B 678bfb13ead69045e7d4d840bbcaed884d9ebedded5425cfa1f55e3d85bda31a3eb43dbbf9f07099d0d198f97ae68ef3b3b2b78aa1bd5b4999dd729dc08f7e28 SHA512 4625c8e6ccfa9120281fd714d3f6b7c3ba2265470c1be76121d6b25dc3dacb899d26e5d9a417ddc616d23909f1411495aa995ef8d8d6df8511cd5cefbabcb1c5 diff --git a/sci-libs/openblas/files/openblas-0.3.21-fix-loong.patch b/sci-libs/openblas/files/openblas-0.3.21-fix-loong.patch new file mode 100644 index ..ed112d62380b --- /dev/null +++ b/sci-libs/openblas/files/openblas-0.3.21-fix-loong.patch @@ -0,0 +1,237 @@ +https://github.com/xianyi/OpenBLAS/pull/3626 + +From 5af7b8638b3b972bd0e25597ec07927fffd52108 Mon Sep 17 00:00:00 2001 +From: WANG Xuerui +Date: Fri, 13 May 2022 15:26:33 +0800 +Subject: [PATCH 1/3] Move LoongArch make rules to Makefile.loongarch64 + +--- + Makefile.loongarch64 | 5 +++-- + Makefile.system | 5 - + 2 files changed, 3 insertions(+), 7 deletions(-) + +diff --git a/Makefile.loongarch64 b/Makefile.loongarch64 +index 05ea9c679d..fced1a9462 100644 +--- 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 +diff --git a/Makefile.system b/Makefile.system +index 3be5efa0c2..9c91425b0f 100644 +--- a/Makefile.system b/Makefile.system +@@ -895,11 +895,6 @@ ifeq ($(OSNAME), AIX) + BINARY_DEFINED = 1 + endif + +-ifeq ($(ARCH), loongarch64) +-CCOMMON_OPT += -march=loongarch64 -mabi=lp64 +-FCOMMON_OPT += -march=loongarch64 -mabi=lp64 +-endif +- + endif + + ifndef BINARY_DEFINED + +From 869061c783d60ba0b799fab643952c493b57fb0a Mon Sep 17 00:00:00 2001 +From: WANG Xuerui +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 +--- + Makefile.system | 1 + + c_check | 27 ++- + kernel/loongarch64/KERNEL.LOONGSON3R5 | 5 + + 3 files changed, 32 insertions(+), 1 deletion(-) + +diff --git a/Makefile.system b/Makefile.system +index 9c91425b0f..b86aafbddb 100644 +--- a/Makefile.system b/Makefile.system +@@ -1702,6 +1702,7 @@ export TARGET_CORE + export NO_AVX512 + export NO_AVX2 + export BUILD_BFLOAT16 ++export NO_LASX + + export SBGEMM_UNROLL_M + export SBGEMM_UNROLL_N +diff --git a/c_check b/c_check +index 01d4f4a7cf..a37e91f82c 100755 +--- a/c_check b/c_check +@@ -112,7 +112,7 @@ case "$architecture" in + defined=1 + ;; + arm|arm64) defined=1 ;; +-zarch|e2k|alpha|ia64|riscv64|loonarch64) ++zarch|e2k|alpha|ia64|riscv64|loongarch64) + defined=1 + BINARY=64 + ;; +@@ -240,6 +240,29 @@ if [ "$architecture" = "riscv64" ]; then + rm -rf "$tmpd" + fi + ++no_lasx=0 ++if [ "$architecture" = "loongarch64" ]; then ++tmpd=`mktemp -d` ++t
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 4e6f5cd4a22197d3d054469aea8ffa08731c4d2a Author: Michael Orlitzky gentoo org> AuthorDate: Mon Oct 31 13:59:29 2022 + Commit: Michael Orlitzky gentoo org> CommitDate: Mon Oct 31 13:59:55 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e6f5cd4 sci-libs/openblas: update HOMEPAGE Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.20.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.20.ebuild b/sci-libs/openblas/openblas-0.3.20.ebuild index 9752701c1849..029ace6cd509 100644 --- a/sci-libs/openblas/openblas-0.3.20.ebuild +++ b/sci-libs/openblas/openblas-0.3.20.ebuild @@ -6,7 +6,7 @@ EAPI=7 inherit flag-o-matic fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.io/OpenBLAS/"; +HOMEPAGE="https://github.com/xianyi/OpenBLAS"; SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}"/OpenBLAS-${PV}
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: c29081a6e389a5266bc401ed99f5658d33b77201 Author: Sam James gentoo org> AuthorDate: Mon Oct 24 15:20:41 2022 + Commit: Sam James gentoo org> CommitDate: Mon Oct 24 15:51:53 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c29081a6 sci-libs/openblas: update HOMEPAGE Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.18.ebuild | 2 +- sci-libs/openblas/openblas-0.3.19.ebuild | 2 +- sci-libs/openblas/openblas-0.3.20.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.18.ebuild b/sci-libs/openblas/openblas-0.3.18.ebuild index ec15a244d0b8..31488ab8cb0d 100644 --- a/sci-libs/openblas/openblas-0.3.18.ebuild +++ b/sci-libs/openblas/openblas-0.3.18.ebuild @@ -6,7 +6,7 @@ EAPI=7 inherit flag-o-matic fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +HOMEPAGE="http://xianyi.github.io/OpenBLAS/"; SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}"/OpenBLAS-${PV} diff --git a/sci-libs/openblas/openblas-0.3.19.ebuild b/sci-libs/openblas/openblas-0.3.19.ebuild index ec15a244d0b8..31488ab8cb0d 100644 --- a/sci-libs/openblas/openblas-0.3.19.ebuild +++ b/sci-libs/openblas/openblas-0.3.19.ebuild @@ -6,7 +6,7 @@ EAPI=7 inherit flag-o-matic fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +HOMEPAGE="http://xianyi.github.io/OpenBLAS/"; SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}"/OpenBLAS-${PV} diff --git a/sci-libs/openblas/openblas-0.3.20.ebuild b/sci-libs/openblas/openblas-0.3.20.ebuild index 01fd54d252c4..9752701c1849 100644 --- a/sci-libs/openblas/openblas-0.3.20.ebuild +++ b/sci-libs/openblas/openblas-0.3.20.ebuild @@ -6,7 +6,7 @@ EAPI=7 inherit flag-o-matic fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +HOMEPAGE="http://xianyi.github.io/OpenBLAS/"; SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}"/OpenBLAS-${PV}
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 65c9ccf3e0e396a82ef25c30d6eb5639b61e7ddf Author: David Seifert gentoo org> AuthorDate: Mon May 16 08:12:22 2022 + Commit: David Seifert gentoo org> CommitDate: Mon May 16 08:12:22 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c9ccf3 sci-libs/openblas: [QA] use tc-check-openmp correctly Signed-off-by: David Seifert gentoo.org> sci-libs/openblas/openblas-0.3.18.ebuild | 4 +++- sci-libs/openblas/openblas-0.3.19.ebuild | 4 +++- sci-libs/openblas/openblas-0.3.20.ebuild | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.18.ebuild b/sci-libs/openblas/openblas-0.3.18.ebuild index 3ac219fa41cf..ec15a244d0b8 100644 --- a/sci-libs/openblas/openblas-0.3.18.ebuild +++ b/sci-libs/openblas/openblas-0.3.18.ebuild @@ -30,6 +30,8 @@ PATCHES=( ) pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + elog "This software has a massive number of options that" elog "are configurable and it is *impossible* for all of" elog "those to fit inside any manageable ebuild." @@ -57,7 +59,7 @@ pkg_setup() { export HOSTCC="$(tc-getBUILD_CC)" # threading options - use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp USE_THREAD=0 if use openmp; then USE_THREAD=1; USE_OPENMP=1; diff --git a/sci-libs/openblas/openblas-0.3.19.ebuild b/sci-libs/openblas/openblas-0.3.19.ebuild index 3ac219fa41cf..ec15a244d0b8 100644 --- a/sci-libs/openblas/openblas-0.3.19.ebuild +++ b/sci-libs/openblas/openblas-0.3.19.ebuild @@ -30,6 +30,8 @@ PATCHES=( ) pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + elog "This software has a massive number of options that" elog "are configurable and it is *impossible* for all of" elog "those to fit inside any manageable ebuild." @@ -57,7 +59,7 @@ pkg_setup() { export HOSTCC="$(tc-getBUILD_CC)" # threading options - use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp USE_THREAD=0 if use openmp; then USE_THREAD=1; USE_OPENMP=1; diff --git a/sci-libs/openblas/openblas-0.3.20.ebuild b/sci-libs/openblas/openblas-0.3.20.ebuild index 518fd79fedef..01fd54d252c4 100644 --- a/sci-libs/openblas/openblas-0.3.20.ebuild +++ b/sci-libs/openblas/openblas-0.3.20.ebuild @@ -32,6 +32,8 @@ PATCHES=( ) pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + elog "This software has a massive number of options that" elog "are configurable and it is *impossible* for all of" elog "those to fit inside any manageable ebuild." @@ -59,7 +61,7 @@ pkg_setup() { export HOSTCC="$(tc-getBUILD_CC)" # threading options - use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp USE_THREAD=0 if use openmp; then USE_THREAD=1; USE_OPENMP=1;
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: d41874f0fffe0c54d9b9f9285b484322f623d889 Author: WANG Xuerui gentoo org> AuthorDate: Fri May 13 12:59:46 2022 + Commit: WANG Xuerui gentoo org> CommitDate: Fri May 13 14:00:07 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d41874f0 sci-libs/openblas: keyword 0.3.20 for ~loong Tests passed on real hardware. Signed-off-by: WANG Xuerui gentoo.org> sci-libs/openblas/openblas-0.3.20.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.20.ebuild b/sci-libs/openblas/openblas-0.3.20.ebuild index 5b1ac906fd43..518fd79fedef 100644 --- a/sci-libs/openblas/openblas-0.3.20.ebuild +++ b/sci-libs/openblas/openblas-0.3.20.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/, sci-libs/openblas/
commit: c3426da5b81db4d54864ea17d31074e0c60d7e35 Author: WANG Xuerui gentoo org> AuthorDate: Fri May 13 12:44:07 2022 + Commit: WANG Xuerui gentoo org> CommitDate: Fri May 13 12:57:27 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3426da5 sci-libs/openblas: fix build on loong Closes: https://bugs.gentoo.org/844013 Signed-off-by: WANG Xuerui gentoo.org> .../openblas/files/openblas-0.3.20-fix-loong.patch | 178 + sci-libs/openblas/openblas-0.3.20.ebuild | 1 + 2 files changed, 179 insertions(+) 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 new file mode 100644 index ..2745d26cb3a5 --- /dev/null +++ b/sci-libs/openblas/files/openblas-0.3.20-fix-loong.patch @@ -0,0 +1,178 @@ +https://github.com/xianyi/OpenBLAS/pull/3626, rebased on top of v0.3.20. + +From: WANG Xuerui +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 +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 +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
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/
commit: ddd2668b8fd04954822288f69307fcbd26f43bb5 Author: WANG Xuerui gentoo org> AuthorDate: Fri May 13 12:45:40 2022 + Commit: WANG Xuerui gentoo org> CommitDate: Fri May 13 12:57:28 2022 + 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 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 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 - 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 Date: Wed, 27 Apr 2022 02:29:43 +0800 Subject: [PATCH 2/2] Fix riscv64 arch detect Signed-off-by: Han Gao - 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[]){
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 70649b9f4d65c25b27e532a2a4b48cf6cb970d16 Author: Han Gao gmail com> AuthorDate: Wed Apr 27 16:16:36 2022 + Commit: Jakov Smolić gentoo org> CommitDate: Wed Apr 27 21:18:25 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70649b9f sci-libs/openblas: riscv keywording Bug: https://bugs.gentoo.org/837797 Signed-off-by: Han Gao gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25217 Signed-off-by: Jakov Smolić gentoo.org> sci-libs/openblas/openblas-0.3.20.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.20.ebuild b/sci-libs/openblas/openblas-0.3.20.ebuild index 04d90c709e40..5d2349e6998f 100644 --- a/sci-libs/openblas/openblas-0.3.20.ebuild +++ b/sci-libs/openblas/openblas-0.3.20.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/, sci-libs/openblas/
commit: 47b90dedf06234195ea5eb701633396e0acb2687 Author: Han Gao gmail com> AuthorDate: Wed Apr 27 16:15:35 2022 + Commit: Jakov Smolić gentoo org> CommitDate: Wed Apr 27 21:18:24 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47b90ded sci-libs/openblas: fix riscv detect Bug: https://bugs.gentoo.org/837806 Signed-off-by: Han Gao gmail.com> Signed-off-by: Jakov Smolić gentoo.org> .../openblas/files/openblas-0.3.20-fix-riscv.patch | 116 + sci-libs/openblas/openblas-0.3.20.ebuild | 1 + 2 files changed, 117 insertions(+) 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 new file mode 100644 index ..9a14180cb85d --- /dev/null +++ b/sci-libs/openblas/files/openblas-0.3.20-fix-riscv.patch @@ -0,0 +1,116 @@ +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 +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 +--- + 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 + 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 8123324c99ba69ce23b4028468313663001a76c6 Mon Sep 17 00:00:00 2001 +From: Han Gao +Date: Wed, 27 Apr 2022 02:29:43 +0800 +Subject: [PATCH 2/2] Fix riscv64 arch detect + +Signed-off-by: Han Gao +--- + 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 @@ + /* +-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"); +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[]){ + #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) || def
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: b4452fe1c89ca4b681ccf19598de381f1f389261 Author: Sam James gentoo org> AuthorDate: Sun Mar 20 18:50:16 2022 + Commit: Sam James gentoo org> CommitDate: Sun Mar 20 18:51:22 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4452fe1 sci-libs/openblas: [QA] fix tc-get* quoting This can cause build problems for e.g. 32-bit (gcc -m32 ...) Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.18.ebuild | 4 ++-- sci-libs/openblas/openblas-0.3.19.ebuild | 2 +- sci-libs/openblas/openblas-0.3.20.ebuild | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.18.ebuild b/sci-libs/openblas/openblas-0.3.18.ebuild index fa3c14f13223..3ac219fa41cf 100644 --- a/sci-libs/openblas/openblas-0.3.18.ebuild +++ b/sci-libs/openblas/openblas-0.3.18.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -54,7 +54,7 @@ pkg_setup() { tc-export CC FC LD AR AS RANLIB # HOSTCC is used for scripting - export HOSTCC=$(tc-getBUILD_CC) + export HOSTCC="$(tc-getBUILD_CC)" # threading options use openmp && tc-check-openmp diff --git a/sci-libs/openblas/openblas-0.3.19.ebuild b/sci-libs/openblas/openblas-0.3.19.ebuild index 7da37f1c1daa..3ac219fa41cf 100644 --- a/sci-libs/openblas/openblas-0.3.19.ebuild +++ b/sci-libs/openblas/openblas-0.3.19.ebuild @@ -54,7 +54,7 @@ pkg_setup() { tc-export CC FC LD AR AS RANLIB # HOSTCC is used for scripting - export HOSTCC=$(tc-getBUILD_CC) + export HOSTCC="$(tc-getBUILD_CC)" # threading options use openmp && tc-check-openmp diff --git a/sci-libs/openblas/openblas-0.3.20.ebuild b/sci-libs/openblas/openblas-0.3.20.ebuild index ab77400429f6..ed4ad9b91ed7 100644 --- a/sci-libs/openblas/openblas-0.3.20.ebuild +++ b/sci-libs/openblas/openblas-0.3.20.ebuild @@ -54,7 +54,7 @@ pkg_setup() { tc-export CC FC LD AR AS RANLIB # HOSTCC is used for scripting - export HOSTCC=$(tc-getBUILD_CC) + export HOSTCC="$(tc-getBUILD_CC)" # threading options use openmp && tc-check-openmp
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 992f83b5174f883e97f1c17dae3078f6c8c35f4e Author: Sam James gentoo org> AuthorDate: Mon Feb 21 02:08:03 2022 + Commit: Sam James gentoo org> CommitDate: Mon Feb 21 02:08:03 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=992f83b5 sci-libs/openblas: add 0.3.20 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.20.ebuild | 197 +++ 2 files changed, 198 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 6c8bbfef4fa2..7f5369e57040 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,2 +1,3 @@ DIST openblas-0.3.18.tar.gz 12619822 BLAKE2B 38a5e7b861eb0063a4494c1cfb6f7f5723741437ecdd5cb1fb42645eb73bceb472b3a8c11eec3d0ba4f676981ac89de4ff1ee0d7ea42d1e234746f34ce8fb6b8 SHA512 df9a14026a61bdc5285636bfd7a52dce244d24fcf4a0c870ef4e58b8b50e412849828ca5aeac2a2435f635e78e60559762e8bae22ea7bc5dff2e865a96d81152 DIST openblas-0.3.19.tar.gz 12706050 BLAKE2B c29aa27faaf18e3330087f8d2ebed733f53878266d6865239dfbb1624a113f3cabc988bbfcc18a0aa5d971697bc68bb267795ef24e2d8e0e8d50f802cb817b57 SHA512 1fcbcfefb7744894b0b0c83c6071b342086ca311dc67f5c2745812d61dcc9d31ef7dd5e1215dfb2731ae7197d497dbdf8f8b26a432eb07d41a7db0983eb86a33 +DIST openblas-0.3.20.tar.gz 12742441 BLAKE2B 9ae808e2a7da39e28dbe26c7feb5da3c70275f3b48bd68455c22e3b16fc1f2d10b9d84c9593acff2c837fc1514f21f2bbc0e87708075c5fe13514d0d47cf0b5a SHA512 0742d40b74b11b781021280fd627fa5798e6856b49f2baa5927aac1a7823bcb8162187555f4cf3a4dd7eadf5b1f2a4685c0b5e189847b2869166d1bc7391 diff --git a/sci-libs/openblas/openblas-0.3.20.ebuild b/sci-libs/openblas/openblas-0.3.20.ebuild new file mode 100644 index ..ab77400429f6 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.20.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/OpenBLAS-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" +) + +pkg_pretend() { + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + fortran-2_pkg_setup + + # List of most configurable options - Makefile.rule + + # https://github.com/xianyi/OpenBLAS/pull/2663 + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC=$(tc-getBUILD_CC) + + # threading options + use openmp && tc-check-openmp + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + # disable submake with -j and default optimization flags + # in Makefile.system + # Makefile.rule says to not modify COMMON_OPT/FCOMMON_OPT... + export MAKE_NB_JOBS=-1 \ + COMMON_OPT=" " \ + FCOMMON_OPT=" " + + # Target CPU ARCH options + # generally detected automatically from cross toolchain + use dynamic && \ + export DYNAMIC_ARCH=1 \ + NO_AFFINITY=1 \ + TARGET=GENERIC + + export NUM_PARALLEL=${OPENBLAS_NPARALLEL:-8
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: e5a1a31116acec265e8b9271a361e6c500ad08c8 Author: Sam James gentoo org> AuthorDate: Sat Feb 19 19:20:21 2022 + Commit: Sam James gentoo org> CommitDate: Sat Feb 19 19:20:21 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a1a311 sci-libs/openblas: Stabilize 0.3.19 amd64, #833718 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.19.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.19.ebuild b/sci-libs/openblas/openblas-0.3.19.ebuild index 7d76564474ca..7da37f1c1daa 100644 --- a/sci-libs/openblas/openblas-0.3.19.ebuild +++ b/sci-libs/openblas/openblas-0.3.19.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 4c8ffce13cbcdcbe8bd4f7c2c9b9281b22d542ee Author: Sam James gentoo org> AuthorDate: Sun Dec 19 22:36:53 2021 + Commit: Sam James gentoo org> CommitDate: Sun Dec 19 22:44:15 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c8ffce1 sci-libs/openblas: add 0.3.19 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.19.ebuild | 197 +++ 2 files changed, 198 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 4dba7654c102..6c8bbfef4fa2 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1 +1,2 @@ DIST openblas-0.3.18.tar.gz 12619822 BLAKE2B 38a5e7b861eb0063a4494c1cfb6f7f5723741437ecdd5cb1fb42645eb73bceb472b3a8c11eec3d0ba4f676981ac89de4ff1ee0d7ea42d1e234746f34ce8fb6b8 SHA512 df9a14026a61bdc5285636bfd7a52dce244d24fcf4a0c870ef4e58b8b50e412849828ca5aeac2a2435f635e78e60559762e8bae22ea7bc5dff2e865a96d81152 +DIST openblas-0.3.19.tar.gz 12706050 BLAKE2B c29aa27faaf18e3330087f8d2ebed733f53878266d6865239dfbb1624a113f3cabc988bbfcc18a0aa5d971697bc68bb267795ef24e2d8e0e8d50f802cb817b57 SHA512 1fcbcfefb7744894b0b0c83c6071b342086ca311dc67f5c2745812d61dcc9d31ef7dd5e1215dfb2731ae7197d497dbdf8f8b26a432eb07d41a7db0983eb86a33 diff --git a/sci-libs/openblas/openblas-0.3.19.ebuild b/sci-libs/openblas/openblas-0.3.19.ebuild new file mode 100644 index ..7d76564474ca --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.19.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/OpenBLAS-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" +) + +pkg_pretend() { + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + fortran-2_pkg_setup + + # List of most configurable options - Makefile.rule + + # https://github.com/xianyi/OpenBLAS/pull/2663 + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC=$(tc-getBUILD_CC) + + # threading options + use openmp && tc-check-openmp + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + # disable submake with -j and default optimization flags + # in Makefile.system + # Makefile.rule says to not modify COMMON_OPT/FCOMMON_OPT... + export MAKE_NB_JOBS=-1 \ + COMMON_OPT=" " \ + FCOMMON_OPT=" " + + # Target CPU ARCH options + # generally detected automatically from cross toolchain + use dynamic && \ + export DYNAMIC_ARCH=1 \ + NO_AFFINITY=1 \ + TARGET=GENERIC + + export NUM_PARALLEL=${OPENBLAS_NPARALLEL:-8} \ + NUM_THREADS=${OPENBLAS_NTHREAD:-64} + + # setting OPENBLAS_TARGET to override auto detection + # in case the toolchain is not enough to detect + # https://github.com/xianyi/OpenBLAS/blob/develop/TargetList.txt + if ! use dynamic && [[ ! -z "${OPENBLAS_TARGET}" ]] ; then +
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/
commit: edaaf5f0bf2f6f203fcc6c9cc37a2e5903e56eaa Author: Michael Mair-Keimberger levelnine at> AuthorDate: Tue Nov 16 16:55:56 2021 + Commit: Conrad Kostecki gentoo org> CommitDate: Tue Nov 23 20:33:51 2021 + 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 levelnine.at> Signed-off-by: Conrad Kostecki 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.. --- 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 -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.. --- 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 -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.. --- 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.$(SU
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: fcef3aaa27c9faf0e7d429c68224b5760c94a127 Author: Jakov Smolić gentoo org> AuthorDate: Fri Nov 5 17:36:00 2021 + Commit: Jakov Smolić gentoo org> CommitDate: Fri Nov 5 17:38:10 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcef3aaa sci-libs/openblas: drop 0.3.17 Signed-off-by: Jakov Smolić gentoo.org> sci-libs/openblas/Manifest | 1 - sci-libs/openblas/openblas-0.3.17.ebuild | 198 --- 2 files changed, 199 deletions(-) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index b0a64a31bb4..4dba7654c10 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,2 +1 @@ -DIST openblas-0.3.17.tar.gz 12513037 BLAKE2B bb3a89500f242613a6bed73519702995cf1e82dcfec49f9469ecfd6647121260a4364582dbc257a75212320b5690ba93e75a0f2762dce7f398ef6443b169b4e4 SHA512 a97745c1f050ea44fce5f1722810de469612d374a29796a874d12673d6ad189872160cc2b5d0885790e6562d9d7ade629144c86f2649e668b0d4def36aa74495 DIST openblas-0.3.18.tar.gz 12619822 BLAKE2B 38a5e7b861eb0063a4494c1cfb6f7f5723741437ecdd5cb1fb42645eb73bceb472b3a8c11eec3d0ba4f676981ac89de4ff1ee0d7ea42d1e234746f34ce8fb6b8 SHA512 df9a14026a61bdc5285636bfd7a52dce244d24fcf4a0c870ef4e58b8b50e412849828ca5aeac2a2435f635e78e60559762e8bae22ea7bc5dff2e865a96d81152 diff --git a/sci-libs/openblas/openblas-0.3.17.ebuild b/sci-libs/openblas/openblas-0.3.17.ebuild deleted file mode 100644 index 4d8d73725fd..000 --- a/sci-libs/openblas/openblas-0.3.17.ebuild +++ /dev/null @@ -1,198 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic fortran-2 toolchain-funcs - -DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; -SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/OpenBLAS-${PV} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" -REQUIRED_USE="?? ( openmp pthread )" -RESTRICT="!test? ( test )" - -RDEPEND=" - eselect-ldso? ( - >=app-eselect/eselect-blas-0.2 - >=app-eselect/eselect-lapack-0.2 - ) -" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" - "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" -) - -pkg_pretend() { - elog "This software has a massive number of options that" - elog "are configurable and it is *impossible* for all of" - elog "those to fit inside any manageable ebuild." - elog "The Gentoo provided package has enough to build" - elog "a fully optimized library for your targeted CPU." - elog "You can set the CPU target using the environment" - elog "variable - OPENBLAS_TARGET or it will be detected" - elog "automatically from the target toolchain (supports" - elog "cross compilation toolchains)." - elog "You can control the maximum number of threads" - elog "using OPENBLAS_NTHREAD, default=64 and number of " - elog "parallel calls to allow before further calls wait" - elog "using OPENBLAS_NPARALLEL, default=8." -} - -pkg_setup() { - fortran-2_pkg_setup - - # List of most configurable options - Makefile.rule - - # https://github.com/xianyi/OpenBLAS/pull/2663 - tc-export CC FC LD AR AS RANLIB - - # HOSTCC is used for scripting - export HOSTCC=$(tc-getBUILD_CC) - - # threading options - use openmp && tc-check-openmp - USE_THREAD=0 - if use openmp; then - USE_THREAD=1; USE_OPENMP=1; - elif use pthread; then - USE_THREAD=1; USE_OPENMP=0; - fi - export USE_THREAD USE_OPENMP - - # We need to filter these while building the library, and not just - # while building the test suite. Will hopefully get fixed upstream: - # https://github.com/xianyi/OpenBLAS/issues/2657 - use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" - - # disable submake with -j and default optimization flags - # in Makefile.system - # Makefile.rule says to not modify COMMON_OPT/FCOMMON_OPT... - export MAKE_NB_JOBS=-1 \ - COMMON_OPT=" " \ - FCOMMON_OPT=" " - - # Target CPU ARCH options - # generally detected automatically from cross toolchain - use dynamic && \ - export DYNAMIC_ARCH=1 \ - NO_AFFINITY=1 \ - TARGET=GENERIC - - export NUM_PARALLEL=${OPENBLAS_NPARALLEL:-8} \ - NUM_THREADS=${OPENBLAS_NTHREAD:-64} - - # setting OPENBLAS_TARGET to override auto detection - # in case the toolchain is not enough to detect - # https://github.com/xianyi/OpenBLAS/blob/develop/TargetList.txt
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 1457a064c239774f3d66492dacd523a0217acdc7 Author: Sam James gentoo org> AuthorDate: Fri Nov 5 17:33:51 2021 + Commit: Sam James gentoo org> CommitDate: Fri Nov 5 17:33:51 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1457a064 sci-libs/openblas: Stabilize 0.3.18 amd64, #821904 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.18.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.18.ebuild b/sci-libs/openblas/openblas-0.3.18.ebuild index 7d76564474c..fa3c14f1322 100644 --- a/sci-libs/openblas/openblas-0.3.18.ebuild +++ b/sci-libs/openblas/openblas-0.3.18.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 7563c02ff3ac1ecc830b18e8e7bd698b8352fd48 Author: Jakov Smolić gentoo org> AuthorDate: Wed Oct 6 07:56:13 2021 + Commit: Jakov Smolić gentoo org> CommitDate: Wed Oct 6 08:31:37 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7563c02f sci-libs/openblas: drop 0.3.12-r1, 0.3.13, 0.3.14 Signed-off-by: Jakov Smolić gentoo.org> sci-libs/openblas/Manifest | 3 - sci-libs/openblas/openblas-0.3.12-r1.ebuild | 198 sci-libs/openblas/openblas-0.3.13.ebuild| 198 sci-libs/openblas/openblas-0.3.14.ebuild| 198 4 files changed, 597 deletions(-) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index f25ea9b5b2b..b0a64a31bb4 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,5 +1,2 @@ -DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99e83c8a4484453f120d8f8c9c69ea5b481a143db04342a1dcb1779ce548a49618cf4941d08d636e12ed481305e8fb5 SHA512 1ff5a065c41f7e460857f8428fc77900b189f051fa8129eea9ae93237f234d387cc1c6e627c2c95636164f512d4d721d4229729f04a04e8d5f655abbf5463d98 -DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe50975a7fd3f54108e98e88a13002b1035f5697322ba73df7c6397faee6d0772c1d4d46b66db8e862f17b980dbdf97 SHA512 86e7f496587cc35d7feede99cbe3cf627ef690dd7489bb03b95f7d15ed758e32baf17d79f17b1de187184394233f60a8249a64dd53c3d59a9540db92269b7ee4 -DIST openblas-0.3.14.tar.gz 12460465 BLAKE2B 9505ff6e132581ecc86159fb84192c6bbce0f2974293eaf1b4aca6b96b5da85823bfc1bced65a96930674fd4781ea3e375aed09cbdc9930cef26694c9f8e1c80 SHA512 c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e DIST openblas-0.3.17.tar.gz 12513037 BLAKE2B bb3a89500f242613a6bed73519702995cf1e82dcfec49f9469ecfd6647121260a4364582dbc257a75212320b5690ba93e75a0f2762dce7f398ef6443b169b4e4 SHA512 a97745c1f050ea44fce5f1722810de469612d374a29796a874d12673d6ad189872160cc2b5d0885790e6562d9d7ade629144c86f2649e668b0d4def36aa74495 DIST openblas-0.3.18.tar.gz 12619822 BLAKE2B 38a5e7b861eb0063a4494c1cfb6f7f5723741437ecdd5cb1fb42645eb73bceb472b3a8c11eec3d0ba4f676981ac89de4ff1ee0d7ea42d1e234746f34ce8fb6b8 SHA512 df9a14026a61bdc5285636bfd7a52dce244d24fcf4a0c870ef4e58b8b50e412849828ca5aeac2a2435f635e78e60559762e8bae22ea7bc5dff2e865a96d81152 diff --git a/sci-libs/openblas/openblas-0.3.12-r1.ebuild b/sci-libs/openblas/openblas-0.3.12-r1.ebuild deleted file mode 100644 index 4d8d73725fd..000 --- a/sci-libs/openblas/openblas-0.3.12-r1.ebuild +++ /dev/null @@ -1,198 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic fortran-2 toolchain-funcs - -DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; -SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/OpenBLAS-${PV} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" -REQUIRED_USE="?? ( openmp pthread )" -RESTRICT="!test? ( test )" - -RDEPEND=" - eselect-ldso? ( - >=app-eselect/eselect-blas-0.2 - >=app-eselect/eselect-lapack-0.2 - ) -" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" - "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" -) - -pkg_pretend() { - elog "This software has a massive number of options that" - elog "are configurable and it is *impossible* for all of" - elog "those to fit inside any manageable ebuild." - elog "The Gentoo provided package has enough to build" - elog "a fully optimized library for your targeted CPU." - elog "You can set the CPU target using the environment" - elog "variable - OPENBLAS_TARGET or it will be detected" - elog "automatically from the target toolchain (supports" - elog "cross compilation toolchains)." - elog "You can control the maximum number of threads" - elog "using OPENBLAS_NTHREAD, default=64 and number of " - elog "parallel calls to allow before further calls wait" - elog "using OPENBLAS_NPARALLEL, default=8." -} - -pkg_setup() { - fortran-2_pkg_setup - - # List of most configurable options - Makefile.rule - - # https://github.com/xianyi/OpenBLAS/pull/2663 - tc-export CC FC LD AR AS RANLIB - - # HOSTCC is used for scripting - export HOSTCC=$(tc-getBUILD_CC) - - # threading options - use openmp && tc-check-openmp - USE_THREAD=0 - if use openmp; then - USE_THREAD=1; USE_OPENMP=1; - elif use pthread; then - USE_THREAD=1; USE_OPENMP=0; -
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: b09c120dec769abe7e10aa81bb327a55aaa1668e Author: Sam James gentoo org> AuthorDate: Sun Oct 3 04:32:19 2021 + Commit: Sam James gentoo org> CommitDate: Sun Oct 3 04:32:36 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b09c120d sci-libs/openblas: add 0.3.18 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.18.ebuild | 197 +++ 2 files changed, 198 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 43e59153feb..f25ea9b5b2b 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -2,3 +2,4 @@ DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99 DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe50975a7fd3f54108e98e88a13002b1035f5697322ba73df7c6397faee6d0772c1d4d46b66db8e862f17b980dbdf97 SHA512 86e7f496587cc35d7feede99cbe3cf627ef690dd7489bb03b95f7d15ed758e32baf17d79f17b1de187184394233f60a8249a64dd53c3d59a9540db92269b7ee4 DIST openblas-0.3.14.tar.gz 12460465 BLAKE2B 9505ff6e132581ecc86159fb84192c6bbce0f2974293eaf1b4aca6b96b5da85823bfc1bced65a96930674fd4781ea3e375aed09cbdc9930cef26694c9f8e1c80 SHA512 c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e DIST openblas-0.3.17.tar.gz 12513037 BLAKE2B bb3a89500f242613a6bed73519702995cf1e82dcfec49f9469ecfd6647121260a4364582dbc257a75212320b5690ba93e75a0f2762dce7f398ef6443b169b4e4 SHA512 a97745c1f050ea44fce5f1722810de469612d374a29796a874d12673d6ad189872160cc2b5d0885790e6562d9d7ade629144c86f2649e668b0d4def36aa74495 +DIST openblas-0.3.18.tar.gz 12619822 BLAKE2B 38a5e7b861eb0063a4494c1cfb6f7f5723741437ecdd5cb1fb42645eb73bceb472b3a8c11eec3d0ba4f676981ac89de4ff1ee0d7ea42d1e234746f34ce8fb6b8 SHA512 df9a14026a61bdc5285636bfd7a52dce244d24fcf4a0c870ef4e58b8b50e412849828ca5aeac2a2435f635e78e60559762e8bae22ea7bc5dff2e865a96d81152 diff --git a/sci-libs/openblas/openblas-0.3.18.ebuild b/sci-libs/openblas/openblas-0.3.18.ebuild new file mode 100644 index 000..7d76564474c --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.18.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/OpenBLAS-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" +) + +pkg_pretend() { + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + fortran-2_pkg_setup + + # List of most configurable options - Makefile.rule + + # https://github.com/xianyi/OpenBLAS/pull/2663 + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC=$(tc-getBUILD_CC) + + # threading options + use openmp && tc-check-openmp + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + # disable submake with -j and default optimization flags + # in Makefile.system + # Makefile.rule says to not modify COMMON_OPT/FCOMMON_OPT...
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 6204c5e095698dfd3a96875a79ac386a06311dfb Author: Sam James gentoo org> AuthorDate: Tue Sep 14 05:14:58 2021 + Commit: Sam James gentoo org> CommitDate: Tue Sep 14 05:14:58 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6204c5e0 sci-libs/openblas: Stabilize 0.3.17 amd64, #812847 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.17.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.17.ebuild b/sci-libs/openblas/openblas-0.3.17.ebuild index 4566f928af8..4d8d73725fd 100644 --- a/sci-libs/openblas/openblas-0.3.17.ebuild +++ b/sci-libs/openblas/openblas-0.3.17.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 67c609435ed65d1895fb45ffbc84ce19aac7b05e Author: Sam James gentoo org> AuthorDate: Tue Aug 10 03:56:03 2021 + Commit: Sam James gentoo org> CommitDate: Tue Aug 10 04:00:21 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67c60943 sci-libs/openblas: drop 0.3.15 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 - sci-libs/openblas/openblas-0.3.15.ebuild | 198 --- 2 files changed, 199 deletions(-) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 282547b8ee4..43e59153feb 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,5 +1,4 @@ DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99e83c8a4484453f120d8f8c9c69ea5b481a143db04342a1dcb1779ce548a49618cf4941d08d636e12ed481305e8fb5 SHA512 1ff5a065c41f7e460857f8428fc77900b189f051fa8129eea9ae93237f234d387cc1c6e627c2c95636164f512d4d721d4229729f04a04e8d5f655abbf5463d98 DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe50975a7fd3f54108e98e88a13002b1035f5697322ba73df7c6397faee6d0772c1d4d46b66db8e862f17b980dbdf97 SHA512 86e7f496587cc35d7feede99cbe3cf627ef690dd7489bb03b95f7d15ed758e32baf17d79f17b1de187184394233f60a8249a64dd53c3d59a9540db92269b7ee4 DIST openblas-0.3.14.tar.gz 12460465 BLAKE2B 9505ff6e132581ecc86159fb84192c6bbce0f2974293eaf1b4aca6b96b5da85823bfc1bced65a96930674fd4781ea3e375aed09cbdc9930cef26694c9f8e1c80 SHA512 c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e -DIST openblas-0.3.15.tar.gz 12498434 BLAKE2B acf3d15e002686bcd84323616387dcf540b58d57392a4862cb556da58d873a8c40783fc4fdae45170aeb204ede3451843c44e3f5e264f76c9a7486b30b3f4cc7 SHA512 c07964ead5ffe9cf088364697bfe5cb409170663e420bdcd08a6366a028625d2a3c23ee4ddbaf0e625860a9fd08cbbb39f97eb985c366c052696d6f8598a844f DIST openblas-0.3.17.tar.gz 12513037 BLAKE2B bb3a89500f242613a6bed73519702995cf1e82dcfec49f9469ecfd6647121260a4364582dbc257a75212320b5690ba93e75a0f2762dce7f398ef6443b169b4e4 SHA512 a97745c1f050ea44fce5f1722810de469612d374a29796a874d12673d6ad189872160cc2b5d0885790e6562d9d7ade629144c86f2649e668b0d4def36aa74495 diff --git a/sci-libs/openblas/openblas-0.3.15.ebuild b/sci-libs/openblas/openblas-0.3.15.ebuild deleted file mode 100644 index 4566f928af8..000 --- a/sci-libs/openblas/openblas-0.3.15.ebuild +++ /dev/null @@ -1,198 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic fortran-2 toolchain-funcs - -DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; -SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/OpenBLAS-${PV} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" -REQUIRED_USE="?? ( openmp pthread )" -RESTRICT="!test? ( test )" - -RDEPEND=" - eselect-ldso? ( - >=app-eselect/eselect-blas-0.2 - >=app-eselect/eselect-lapack-0.2 - ) -" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" - "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" -) - -pkg_pretend() { - elog "This software has a massive number of options that" - elog "are configurable and it is *impossible* for all of" - elog "those to fit inside any manageable ebuild." - elog "The Gentoo provided package has enough to build" - elog "a fully optimized library for your targeted CPU." - elog "You can set the CPU target using the environment" - elog "variable - OPENBLAS_TARGET or it will be detected" - elog "automatically from the target toolchain (supports" - elog "cross compilation toolchains)." - elog "You can control the maximum number of threads" - elog "using OPENBLAS_NTHREAD, default=64 and number of " - elog "parallel calls to allow before further calls wait" - elog "using OPENBLAS_NPARALLEL, default=8." -} - -pkg_setup() { - fortran-2_pkg_setup - - # List of most configurable options - Makefile.rule - - # https://github.com/xianyi/OpenBLAS/pull/2663 - tc-export CC FC LD AR AS RANLIB - - # HOSTCC is used for scripting - export HOSTCC=$(tc-getBUILD_CC) - - # threading options - use openmp && tc-check-openmp - USE_THREAD=0 - if use openmp; then - USE_THREAD=1; USE_OPENMP=1; - elif use pthread; then - USE_THREAD=1; USE_OPENMP=0; - fi - export USE_THREAD USE_OPENMP - - # We need to filter these while building the library, and not just - # while building the test suite. Will hopefully get fixed upstream: -
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 34508854fcdf0f22e27969254fc15d6cd5bfe438 Author: Sam James gentoo org> AuthorDate: Thu Jul 22 03:32:07 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jul 22 03:32:07 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34508854 sci-libs/openblas: drop 0.3.16 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 - sci-libs/openblas/openblas-0.3.16.ebuild | 198 --- 2 files changed, 199 deletions(-) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 0d1b36ab96c..282547b8ee4 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -2,5 +2,4 @@ DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99 DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe50975a7fd3f54108e98e88a13002b1035f5697322ba73df7c6397faee6d0772c1d4d46b66db8e862f17b980dbdf97 SHA512 86e7f496587cc35d7feede99cbe3cf627ef690dd7489bb03b95f7d15ed758e32baf17d79f17b1de187184394233f60a8249a64dd53c3d59a9540db92269b7ee4 DIST openblas-0.3.14.tar.gz 12460465 BLAKE2B 9505ff6e132581ecc86159fb84192c6bbce0f2974293eaf1b4aca6b96b5da85823bfc1bced65a96930674fd4781ea3e375aed09cbdc9930cef26694c9f8e1c80 SHA512 c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e DIST openblas-0.3.15.tar.gz 12498434 BLAKE2B acf3d15e002686bcd84323616387dcf540b58d57392a4862cb556da58d873a8c40783fc4fdae45170aeb204ede3451843c44e3f5e264f76c9a7486b30b3f4cc7 SHA512 c07964ead5ffe9cf088364697bfe5cb409170663e420bdcd08a6366a028625d2a3c23ee4ddbaf0e625860a9fd08cbbb39f97eb985c366c052696d6f8598a844f -DIST openblas-0.3.16.tar.gz 12511373 BLAKE2B 7856ffa249f6a18102188b32f40327682c9e5f5fd5430e6bd628fd9b00a852a106a9053fe3116cd349ac35f30126bfa19c2dd9dcdfe79f7748a327bf6e53cf7d SHA512 cf5592fca7ff88ad6dc70fc0d87f6f63d3c76c923ebe9a7f62732739151b460a9b2e0d3a34ca541d7f0fb61e80b30d495020bd2c556fcaa408b9a4155f1b2d1a DIST openblas-0.3.17.tar.gz 12513037 BLAKE2B bb3a89500f242613a6bed73519702995cf1e82dcfec49f9469ecfd6647121260a4364582dbc257a75212320b5690ba93e75a0f2762dce7f398ef6443b169b4e4 SHA512 a97745c1f050ea44fce5f1722810de469612d374a29796a874d12673d6ad189872160cc2b5d0885790e6562d9d7ade629144c86f2649e668b0d4def36aa74495 diff --git a/sci-libs/openblas/openblas-0.3.16.ebuild b/sci-libs/openblas/openblas-0.3.16.ebuild deleted file mode 100644 index 4566f928af8..000 --- a/sci-libs/openblas/openblas-0.3.16.ebuild +++ /dev/null @@ -1,198 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic fortran-2 toolchain-funcs - -DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; -SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/OpenBLAS-${PV} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" -REQUIRED_USE="?? ( openmp pthread )" -RESTRICT="!test? ( test )" - -RDEPEND=" - eselect-ldso? ( - >=app-eselect/eselect-blas-0.2 - >=app-eselect/eselect-lapack-0.2 - ) -" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" - "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" -) - -pkg_pretend() { - elog "This software has a massive number of options that" - elog "are configurable and it is *impossible* for all of" - elog "those to fit inside any manageable ebuild." - elog "The Gentoo provided package has enough to build" - elog "a fully optimized library for your targeted CPU." - elog "You can set the CPU target using the environment" - elog "variable - OPENBLAS_TARGET or it will be detected" - elog "automatically from the target toolchain (supports" - elog "cross compilation toolchains)." - elog "You can control the maximum number of threads" - elog "using OPENBLAS_NTHREAD, default=64 and number of " - elog "parallel calls to allow before further calls wait" - elog "using OPENBLAS_NPARALLEL, default=8." -} - -pkg_setup() { - fortran-2_pkg_setup - - # List of most configurable options - Makefile.rule - - # https://github.com/xianyi/OpenBLAS/pull/2663 - tc-export CC FC LD AR AS RANLIB - - # HOSTCC is used for scripting - export HOSTCC=$(tc-getBUILD_CC) - - # threading options - use openmp && tc-check-openmp - USE_THREAD=0 - if use openmp; then - USE_THREAD=1; USE_OPENMP=1; - elif use pthread; then - USE_THREAD=1; USE_OPENMP=0; - fi - export USE_THREAD USE_OPENMP - - # We need to filter these while building the library, and not just
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: bd96f267afd172ea8c05f7be92992531f98a2cda Author: Sam James gentoo org> AuthorDate: Thu Jul 22 03:32:00 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jul 22 03:32:00 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd96f267 sci-libs/openblas: add 0.3.17 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.17.ebuild | 198 +++ 2 files changed, 199 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index f54392ff11c..0d1b36ab96c 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -3,3 +3,4 @@ DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe DIST openblas-0.3.14.tar.gz 12460465 BLAKE2B 9505ff6e132581ecc86159fb84192c6bbce0f2974293eaf1b4aca6b96b5da85823bfc1bced65a96930674fd4781ea3e375aed09cbdc9930cef26694c9f8e1c80 SHA512 c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e DIST openblas-0.3.15.tar.gz 12498434 BLAKE2B acf3d15e002686bcd84323616387dcf540b58d57392a4862cb556da58d873a8c40783fc4fdae45170aeb204ede3451843c44e3f5e264f76c9a7486b30b3f4cc7 SHA512 c07964ead5ffe9cf088364697bfe5cb409170663e420bdcd08a6366a028625d2a3c23ee4ddbaf0e625860a9fd08cbbb39f97eb985c366c052696d6f8598a844f DIST openblas-0.3.16.tar.gz 12511373 BLAKE2B 7856ffa249f6a18102188b32f40327682c9e5f5fd5430e6bd628fd9b00a852a106a9053fe3116cd349ac35f30126bfa19c2dd9dcdfe79f7748a327bf6e53cf7d SHA512 cf5592fca7ff88ad6dc70fc0d87f6f63d3c76c923ebe9a7f62732739151b460a9b2e0d3a34ca541d7f0fb61e80b30d495020bd2c556fcaa408b9a4155f1b2d1a +DIST openblas-0.3.17.tar.gz 12513037 BLAKE2B bb3a89500f242613a6bed73519702995cf1e82dcfec49f9469ecfd6647121260a4364582dbc257a75212320b5690ba93e75a0f2762dce7f398ef6443b169b4e4 SHA512 a97745c1f050ea44fce5f1722810de469612d374a29796a874d12673d6ad189872160cc2b5d0885790e6562d9d7ade629144c86f2649e668b0d4def36aa74495 diff --git a/sci-libs/openblas/openblas-0.3.17.ebuild b/sci-libs/openblas/openblas-0.3.17.ebuild new file mode 100644 index 000..4566f928af8 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.17.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/OpenBLAS-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" + "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" +) + +pkg_pretend() { + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + fortran-2_pkg_setup + + # List of most configurable options - Makefile.rule + + # https://github.com/xianyi/OpenBLAS/pull/2663 + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC=$(tc-getBUILD_CC) + + # threading options + use openmp && tc-check-openmp + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + # disable submake with -j and default optimization flags + # in Makefile.system +
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 3d4c4ce7f0a3f31750b13fb16f11a03c3aaca066 Author: Sam James gentoo org> AuthorDate: Tue Jul 13 00:49:49 2021 + Commit: Sam James gentoo org> CommitDate: Tue Jul 13 00:49:49 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d4c4ce7 sci-libs/openblas: add 0.3.16 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.16.ebuild | 198 +++ 2 files changed, 199 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 74654d2ab83..f54392ff11c 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -2,3 +2,4 @@ DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99 DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe50975a7fd3f54108e98e88a13002b1035f5697322ba73df7c6397faee6d0772c1d4d46b66db8e862f17b980dbdf97 SHA512 86e7f496587cc35d7feede99cbe3cf627ef690dd7489bb03b95f7d15ed758e32baf17d79f17b1de187184394233f60a8249a64dd53c3d59a9540db92269b7ee4 DIST openblas-0.3.14.tar.gz 12460465 BLAKE2B 9505ff6e132581ecc86159fb84192c6bbce0f2974293eaf1b4aca6b96b5da85823bfc1bced65a96930674fd4781ea3e375aed09cbdc9930cef26694c9f8e1c80 SHA512 c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e DIST openblas-0.3.15.tar.gz 12498434 BLAKE2B acf3d15e002686bcd84323616387dcf540b58d57392a4862cb556da58d873a8c40783fc4fdae45170aeb204ede3451843c44e3f5e264f76c9a7486b30b3f4cc7 SHA512 c07964ead5ffe9cf088364697bfe5cb409170663e420bdcd08a6366a028625d2a3c23ee4ddbaf0e625860a9fd08cbbb39f97eb985c366c052696d6f8598a844f +DIST openblas-0.3.16.tar.gz 12511373 BLAKE2B 7856ffa249f6a18102188b32f40327682c9e5f5fd5430e6bd628fd9b00a852a106a9053fe3116cd349ac35f30126bfa19c2dd9dcdfe79f7748a327bf6e53cf7d SHA512 cf5592fca7ff88ad6dc70fc0d87f6f63d3c76c923ebe9a7f62732739151b460a9b2e0d3a34ca541d7f0fb61e80b30d495020bd2c556fcaa408b9a4155f1b2d1a diff --git a/sci-libs/openblas/openblas-0.3.16.ebuild b/sci-libs/openblas/openblas-0.3.16.ebuild new file mode 100644 index 000..4566f928af8 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.16.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/OpenBLAS-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" + "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" +) + +pkg_pretend() { + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + fortran-2_pkg_setup + + # List of most configurable options - Makefile.rule + + # https://github.com/xianyi/OpenBLAS/pull/2663 + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC=$(tc-getBUILD_CC) + + # threading options + use openmp && tc-check-openmp + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + # disable submake with -j and default optimization flags + # in Makefile.system +
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: b35521d9b3666c00308834a8bb2ccd9ea63a4c38 Author: Sam James gentoo org> AuthorDate: Tue May 4 19:39:58 2021 + Commit: Sam James gentoo org> CommitDate: Tue May 4 21:25:19 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b35521d9 sci-libs/openblas: add 0.3.15 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.15.ebuild | 198 +++ 2 files changed, 199 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 64e19a098b4..74654d2ab83 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,3 +1,4 @@ DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99e83c8a4484453f120d8f8c9c69ea5b481a143db04342a1dcb1779ce548a49618cf4941d08d636e12ed481305e8fb5 SHA512 1ff5a065c41f7e460857f8428fc77900b189f051fa8129eea9ae93237f234d387cc1c6e627c2c95636164f512d4d721d4229729f04a04e8d5f655abbf5463d98 DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe50975a7fd3f54108e98e88a13002b1035f5697322ba73df7c6397faee6d0772c1d4d46b66db8e862f17b980dbdf97 SHA512 86e7f496587cc35d7feede99cbe3cf627ef690dd7489bb03b95f7d15ed758e32baf17d79f17b1de187184394233f60a8249a64dd53c3d59a9540db92269b7ee4 DIST openblas-0.3.14.tar.gz 12460465 BLAKE2B 9505ff6e132581ecc86159fb84192c6bbce0f2974293eaf1b4aca6b96b5da85823bfc1bced65a96930674fd4781ea3e375aed09cbdc9930cef26694c9f8e1c80 SHA512 c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e +DIST openblas-0.3.15.tar.gz 12498434 BLAKE2B acf3d15e002686bcd84323616387dcf540b58d57392a4862cb556da58d873a8c40783fc4fdae45170aeb204ede3451843c44e3f5e264f76c9a7486b30b3f4cc7 SHA512 c07964ead5ffe9cf088364697bfe5cb409170663e420bdcd08a6366a028625d2a3c23ee4ddbaf0e625860a9fd08cbbb39f97eb985c366c052696d6f8598a844f diff --git a/sci-libs/openblas/openblas-0.3.15.ebuild b/sci-libs/openblas/openblas-0.3.15.ebuild new file mode 100644 index 000..4566f928af8 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.15.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/OpenBLAS-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" + "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" +) + +pkg_pretend() { + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + fortran-2_pkg_setup + + # List of most configurable options - Makefile.rule + + # https://github.com/xianyi/OpenBLAS/pull/2663 + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC=$(tc-getBUILD_CC) + + # threading options + use openmp && tc-check-openmp + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + # disable submake with -j and default optimization flags + # in Makefile.system + # Makefile.rule says to not modify COMMON_OPT/FCOMMON_OPT... + export MAKE_
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 98a7459745bf1e1e2c4d5d8be95a6f72b9ca2c99 Author: Sam James gentoo org> AuthorDate: Sun Apr 18 06:46:26 2021 + Commit: Sam James gentoo org> CommitDate: Sun Apr 18 06:46:26 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98a74597 sci-libs/openblas: Stabilize 0.3.14 amd64, #783588 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.14.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.14.ebuild b/sci-libs/openblas/openblas-0.3.14.ebuild index 4566f928af8..4d8d73725fd 100644 --- a/sci-libs/openblas/openblas-0.3.14.ebuild +++ b/sci-libs/openblas/openblas-0.3.14.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 62f36ae0a3cf941f87427a3510951517a6abed98 Author: Sam James gentoo org> AuthorDate: Wed Mar 17 23:15:38 2021 + Commit: Sam James gentoo org> CommitDate: Wed Mar 17 23:15:38 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62f36ae0 sci-libs/openblas: add 0.3.14 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.14.ebuild | 198 +++ 2 files changed, 199 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 76d50dca615..64e19a098b4 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,2 +1,3 @@ DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99e83c8a4484453f120d8f8c9c69ea5b481a143db04342a1dcb1779ce548a49618cf4941d08d636e12ed481305e8fb5 SHA512 1ff5a065c41f7e460857f8428fc77900b189f051fa8129eea9ae93237f234d387cc1c6e627c2c95636164f512d4d721d4229729f04a04e8d5f655abbf5463d98 DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe50975a7fd3f54108e98e88a13002b1035f5697322ba73df7c6397faee6d0772c1d4d46b66db8e862f17b980dbdf97 SHA512 86e7f496587cc35d7feede99cbe3cf627ef690dd7489bb03b95f7d15ed758e32baf17d79f17b1de187184394233f60a8249a64dd53c3d59a9540db92269b7ee4 +DIST openblas-0.3.14.tar.gz 12460465 BLAKE2B 9505ff6e132581ecc86159fb84192c6bbce0f2974293eaf1b4aca6b96b5da85823bfc1bced65a96930674fd4781ea3e375aed09cbdc9930cef26694c9f8e1c80 SHA512 c7d5947ada525a32bc6e97ff94272df9730fa5fb06102e06e80472baedc1a9119d82050cdaede192db15f816ae7143784d7801b61b64fab5b5cf97cdbd5e625e diff --git a/sci-libs/openblas/openblas-0.3.14.ebuild b/sci-libs/openblas/openblas-0.3.14.ebuild new file mode 100644 index 000..4566f928af8 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.14.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/OpenBLAS-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" + "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" +) + +pkg_pretend() { + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + fortran-2_pkg_setup + + # List of most configurable options - Makefile.rule + + # https://github.com/xianyi/OpenBLAS/pull/2663 + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC=$(tc-getBUILD_CC) + + # threading options + use openmp && tc-check-openmp + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + # disable submake with -j and default optimization flags + # in Makefile.system + # Makefile.rule says to not modify COMMON_OPT/FCOMMON_OPT... + export MAKE_NB_JOBS=-1 \ + COMMON_OPT=" " \ + FCOMMON_OPT=" " + + # Target CPU ARCH options + # generally detected automatically from cross toolchain + use dynamic && \ + export DYNAMIC_ARCH=1 \ + NO_AFFINITY=1 \ + TARGET=GENE
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/, profiles/base/
commit: c0b8101f6e9d3d61702cf0011c092e090e30aa78 Author: Sam James gentoo org> AuthorDate: Sat Jan 9 02:44:44 2021 + Commit: Sam James gentoo org> CommitDate: Sat Jan 9 02:46:04 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0b8101f sci-libs/openblas: don't set relapack by default This is experimental upstream and shouldn't be enabled by default. URL: https://github.com/xianyi/OpenBLAS/issues/3054 Bug: https://bugs.gentoo.org/764206 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> profiles/base/package.use.stable.mask | 5 + sci-libs/openblas/openblas-0.3.12-r1.ebuild | 2 +- sci-libs/openblas/openblas-0.3.13.ebuild| 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/profiles/base/package.use.stable.mask b/profiles/base/package.use.stable.mask index 4065a767802..962b529d353 100644 --- a/profiles/base/package.use.stable.mask +++ b/profiles/base/package.use.stable.mask @@ -4,6 +4,11 @@ # This file requires eapi 5 or later. New entries go on top. # Please use the same syntax as in package.use.mask +# Sam James (2021-01-09) +# relapack is experimental, please be careful with use +# bug #764206 +sci-libs/openblas relapack + # Brian Evans (2021-01-07) # temporarily block tests so that bugs can be resolved dev-php/theseer-Autoload test diff --git a/sci-libs/openblas/openblas-0.3.12-r1.ebuild b/sci-libs/openblas/openblas-0.3.12-r1.ebuild index 1426aa247ad..4d8d73725fd 100644 --- a/sci-libs/openblas/openblas-0.3.12-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.12-r1.ebuild @@ -13,7 +13,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread +relapack test" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )" diff --git a/sci-libs/openblas/openblas-0.3.13.ebuild b/sci-libs/openblas/openblas-0.3.13.ebuild index 1c5dedff184..4566f928af8 100644 --- a/sci-libs/openblas/openblas-0.3.13.ebuild +++ b/sci-libs/openblas/openblas-0.3.13.ebuild @@ -13,7 +13,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread +relapack test" +IUSE="dynamic eselect-ldso index-64bit openmp pthread relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 03fd163301024e0cd608a4a25b0df0c61f64b682 Author: Fabian Groffen gentoo org> AuthorDate: Wed Jan 6 15:16:40 2021 + Commit: Fabian Groffen gentoo org> CommitDate: Wed Jan 6 15:16:40 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03fd1633 sci-libs/openblas: drop x86-macos Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Fabian Groffen gentoo.org> sci-libs/openblas/openblas-0.3.10.ebuild| 4 ++-- sci-libs/openblas/openblas-0.3.12-r1.ebuild | 4 ++-- sci-libs/openblas/openblas-0.3.13.ebuild| 4 ++-- sci-libs/openblas/openblas-0.3.9-r1.ebuild | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.10.ebuild b/sci-libs/openblas/openblas-0.3.10.ebuild index fad54321378..07e33b946b1 100644 --- a/sci-libs/openblas/openblas-0.3.10.ebuild +++ b/sci-libs/openblas/openblas-0.3.10.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )" diff --git a/sci-libs/openblas/openblas-0.3.12-r1.ebuild b/sci-libs/openblas/openblas-0.3.12-r1.ebuild index 6f996986647..1426aa247ad 100644 --- a/sci-libs/openblas/openblas-0.3.12-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.12-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread +relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )" diff --git a/sci-libs/openblas/openblas-0.3.13.ebuild b/sci-libs/openblas/openblas-0.3.13.ebuild index ef165228c14..1c5dedff184 100644 --- a/sci-libs/openblas/openblas-0.3.13.ebuild +++ b/sci-libs/openblas/openblas-0.3.13.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread +relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )" diff --git a/sci-libs/openblas/openblas-0.3.9-r1.ebuild b/sci-libs/openblas/openblas-0.3.9-r1.ebuild index 391cd252418..8a643b07e30 100644 --- a/sci-libs/openblas/openblas-0.3.9-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.9-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -10,7 +10,7 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV} -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 5c8d6729c628acc3788fbe53b10f255963a0a0c1 Author: Sam James gentoo org> AuthorDate: Tue Dec 29 08:36:01 2020 + Commit: Sam James gentoo org> CommitDate: Tue Dec 29 08:36:01 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c8d6729 sci-libs/openblas: Stabilize 0.3.12-r1 amd64, #761861 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.12-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.12-r1.ebuild b/sci-libs/openblas/openblas-0.3.12-r1.ebuild index ef165228c14..6f996986647 100644 --- a/sci-libs/openblas/openblas-0.3.12-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.12-r1.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}"/OpenBLAS-${PV} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread +relapack test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: bb05c0a118e039743ebb22d6f34a7d76808c6581 Author: Aisha Tammy aisha cc> AuthorDate: Wed Dec 23 01:03:54 2020 + Commit: Sam James gentoo org> CommitDate: Sun Dec 27 03:13:43 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb05c0a1 sci-libs/openblas: version bump 0.3.13 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Aisha Tammy aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/18769 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.13.ebuild | 198 +++ 2 files changed, 199 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 13a601adbee..7f5fccb0865 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,3 +1,4 @@ DIST openblas-0.3.10.tar.gz 12246979 BLAKE2B 507aa3f058b841f477720cff98480afda5c3e236b688fb1a12ff45ce20c42c6e84c786d62a5db7e6de6d133d40286e58777fcb51d6542b7030629d55ba12086f SHA512 64a5f983b2f6e02cdb6e0f14433498cc5daa1ccfb49246f7a2dcd38f9982fa608f2abea069fe0e35012af8c1441c43d1f6418eaccd40795f5002fed1c36ce05d DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99e83c8a4484453f120d8f8c9c69ea5b481a143db04342a1dcb1779ce548a49618cf4941d08d636e12ed481305e8fb5 SHA512 1ff5a065c41f7e460857f8428fc77900b189f051fa8129eea9ae93237f234d387cc1c6e627c2c95636164f512d4d721d4229729f04a04e8d5f655abbf5463d98 +DIST openblas-0.3.13.tar.gz 12437434 BLAKE2B d8f9d3296506c6148cd506278f0b6a2a4fe50975a7fd3f54108e98e88a13002b1035f5697322ba73df7c6397faee6d0772c1d4d46b66db8e862f17b980dbdf97 SHA512 86e7f496587cc35d7feede99cbe3cf627ef690dd7489bb03b95f7d15ed758e32baf17d79f17b1de187184394233f60a8249a64dd53c3d59a9540db92269b7ee4 DIST openblas-0.3.9.tar.gz 12189745 BLAKE2B 3cc4c6a403d6a52845cf4ff8cef254f57587e17e3d09bfb6ed7c02ad06a6002e50b340177c73a944c2a621c12b7f494c516025751c194d019662c0b4db17f4dc SHA512 c6b8ee465f1cf53b37f21ec3ff9a28d5cafe20fec59d8c1bff5923a9e1989dfa5ae8c032a5d43988fe7722ed08c64c7957a3d30e6ae917e2e7aa2977a91e67a3 diff --git a/sci-libs/openblas/openblas-0.3.13.ebuild b/sci-libs/openblas/openblas-0.3.13.ebuild new file mode 100644 index 000..ef165228c14 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.13.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/OpenBLAS-${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread +relapack test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( + >=app-eselect/eselect-blas-0.2 + >=app-eselect/eselect-lapack-0.2 + ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.12-shared-blas-lapack.patch" + "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" +) + +pkg_pretend() { + elog "This software has a massive number of options that" + elog "are configurable and it is *impossible* for all of" + elog "those to fit inside any manageable ebuild." + elog "The Gentoo provided package has enough to build" + elog "a fully optimized library for your targeted CPU." + elog "You can set the CPU target using the environment" + elog "variable - OPENBLAS_TARGET or it will be detected" + elog "automatically from the target toolchain (supports" + elog "cross compilation toolchains)." + elog "You can control the maximum number of threads" + elog "using OPENBLAS_NTHREAD, default=64 and number of " + elog "parallel calls to allow before further calls wait" + elog "using OPENBLAS_NPARALLEL, default=8." +} + +pkg_setup() { + fortran-2_pkg_setup + + # List of most configurable options - Makefile.rule + + # https://github.com/xianyi/OpenBLAS/pull/2663 + tc-export CC FC LD AR AS RANLIB + + # HOSTCC is used for scripting + export HOSTCC=$(tc-getBUILD_CC) + + # threading options + use openmp && tc-check-openmp + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + # disable submake
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/, sci-libs/openblas/files/
commit: 59a6f386a6aed06fde78eb6fdc48f31a0de520ca Author: Aisha Tammy aisha cc> AuthorDate: Sat Nov 7 11:24:41 2020 + Commit: Sam James gentoo org> CommitDate: Sun Nov 8 00:56:12 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59a6f386 sci-libs/openblas: fix libcblas soname Closes: https://bugs.gentoo.org/753437 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/18171 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch| 2 +- sci-libs/openblas/{openblas-0.3.12.ebuild => openblas-0.3.12-r1.ebuild} | 0 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch b/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch index 68a54cf1505..55fb7d7c66c 100644 --- a/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch +++ b/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch @@ -23,7 +23,7 @@ index 6b247b4..1297c73 100644 + $(CC) $(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) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,libblas.so.3 -L.. -lopenblas $(EXTRALIB) ++ $(CC) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,libcblas.so.3 -L.. -lopenblas $(EXTRALIB) + +# The prerequisites must match the symbols deleted in target delete-duplicate-lapack-objects +liblapack.so.3: $(SLAPACKOBJS) $(DLAPACKOBJS) $(CLAPACKOBJS) $(ZLAPACKOBJS) ../kernel/lsame.o ../driver/others/xerbla.o diff --git a/sci-libs/openblas/openblas-0.3.12.ebuild b/sci-libs/openblas/openblas-0.3.12-r1.ebuild similarity index 100% rename from sci-libs/openblas/openblas-0.3.12.ebuild rename to sci-libs/openblas/openblas-0.3.12-r1.ebuild
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: a87c1a439b9fb084ea090cccb5a6421418ce53cd Author: Sam James gentoo org> AuthorDate: Thu Oct 29 20:23:50 2020 + Commit: Sam James gentoo org> CommitDate: Thu Oct 29 20:23:56 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a87c1a43 sci-libs/openblas: minor post-merge fixups Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.12.ebuild | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.12.ebuild b/sci-libs/openblas/openblas-0.3.12.ebuild index b9d0d023fb5..ef165228c14 100644 --- a/sci-libs/openblas/openblas-0.3.12.ebuild +++ b/sci-libs/openblas/openblas-0.3.12.ebuild @@ -108,8 +108,10 @@ pkg_setup() { src_prepare() { default - # disable tests by default + + # Disable tests by default sed -e "/^all ::/s/tests //" -i Makefile || die + # if 64bit-index is needed, create second library # with LIBPREFIX=libopenblas64 if use index-64bit; then @@ -119,7 +121,7 @@ src_prepare() { src_compile() { default - cd interface + cd interface || die emake shared-blas-lapack if use index-64bit; then
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/, sci-libs/openblas/
commit: bb8882671371c6fe665f279a4f41fd0199d28903 Author: Aisha Tammy aisha cc> AuthorDate: Wed Oct 21 21:17:02 2020 + Commit: Sam James gentoo org> CommitDate: Thu Oct 29 20:02:59 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb888267 sci-libs/openblas: version bump to 0.3.12 fix export of toolchain variables fix using BUILDCC for doing local scripting work fix building of tests on cross compile add options to manipulate threading and parallel calls fix up patch to latest add building of lapacke library add option to build relapack extension Closes: https://bugs.gentoo.org/749921 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/17993 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + .../files/openblas-0.3.12-shared-blas-lapack.patch | 36 sci-libs/openblas/metadata.xml | 3 + sci-libs/openblas/openblas-0.3.12.ebuild | 196 + 4 files changed, 236 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index e916248..13a601adbee 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,2 +1,3 @@ DIST openblas-0.3.10.tar.gz 12246979 BLAKE2B 507aa3f058b841f477720cff98480afda5c3e236b688fb1a12ff45ce20c42c6e84c786d62a5db7e6de6d133d40286e58777fcb51d6542b7030629d55ba12086f SHA512 64a5f983b2f6e02cdb6e0f14433498cc5daa1ccfb49246f7a2dcd38f9982fa608f2abea069fe0e35012af8c1441c43d1f6418eaccd40795f5002fed1c36ce05d +DIST openblas-0.3.12.tar.gz 12325103 BLAKE2B 3d6706e59e83f87dd58b287753bf697de99e83c8a4484453f120d8f8c9c69ea5b481a143db04342a1dcb1779ce548a49618cf4941d08d636e12ed481305e8fb5 SHA512 1ff5a065c41f7e460857f8428fc77900b189f051fa8129eea9ae93237f234d387cc1c6e627c2c95636164f512d4d721d4229729f04a04e8d5f655abbf5463d98 DIST openblas-0.3.9.tar.gz 12189745 BLAKE2B 3cc4c6a403d6a52845cf4ff8cef254f57587e17e3d09bfb6ed7c02ad06a6002e50b340177c73a944c2a621c12b7f494c516025751c194d019662c0b4db17f4dc SHA512 c6b8ee465f1cf53b37f21ec3ff9a28d5cafe20fec59d8c1bff5923a9e1989dfa5ae8c032a5d43988fe7722ed08c64c7957a3d30e6ae917e2e7aa2977a91e67a3 diff --git a/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch b/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch new file mode 100644 index 000..68a54cf1505 --- /dev/null +++ b/sci-libs/openblas/files/openblas-0.3.12-shared-blas-lapack.patch @@ -0,0 +1,36 @@ +diff --git a/interface/Makefile b/interface/Makefile +index 6b247b4..1297c73 100644 +--- a/interface/Makefile b/interface/Makefile +@@ -330,7 +330,7 @@ CCBLAS3OBJS = \ + cblas_chemm.$(SUFFIX) cblas_cherk.$(SUFFIX) cblas_cher2k.$(SUFFIX) \ + cblas_comatcopy.$(SUFFIX) cblas_cimatcopy.$(SUFFIX)\ + cblas_cgeadd.$(SUFFIX) +- ++ + CXERBLAOBJ = \ + cblas_xerbla.$(SUFFIX) + +@@ -2310,3 +2310,22 @@ cblas_zgeadd.$(SUFFIX) cblas_zgeadd.$(PSUFFIX) : zgeadd.c + cblas_xerbla.$(SUFFIX) cblas_xerbla.$(PSUFFIX) : xerbla.c + $(CC) -c $(CFLAGS) -DCBLAS $< -o $(@F) + ++# ++shared-blas-lapack: libblas.so.3 libcblas.so.3 liblapack.so.3 liblapacke.so.3 ++ ++# The list of prerequisite is created by comparing with NETLIB BLAS public API. ++libblas.so.3: $(SBLAS1OBJS) $(SBLAS2OBJS) $(SBLAS3OBJS) $(DBLAS1OBJS) $(DBLAS2OBJS) $(DBLAS3OBJS) $(CBLAS1OBJS) $(CBLAS2OBJS) $(CBLAS3OBJS) $(ZBLAS1OBJS) $(ZBLAS2OBJS) $(ZBLAS3OBJS) ../kernel/lsame.o ../kernel/scabs1.o ../kernel/dcabs1.o ../driver/others/xerbla.o ++ $(CC) $(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) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,libblas.so.3 -L.. -lopenblas $(EXTRALIB) ++ ++# The prerequisites must match the symbols deleted in target delete-duplicate-lapack-objects ++liblapack.so.3: $(SLAPACKOBJS) $(DLAPACKOBJS) $(CLAPACKOBJS) $(ZLAPACKOBJS) ../kernel/lsame.o ../driver/others/xerbla.o ++ $(CC) $(LDFLAGS) -shared -o $@ $^ ../lapack-netlib/SRC/*.o -Wl,-soname,liblapack.so.3 -L.. -lopenblas $(EXTRALIB) ++ ++liblapacke.so.3: liblapack.so.3 ++ $(CC) $(LDFLAGS) -shared -o $@ `find ../lapack-netlib/LAPACKE -name "*.o"` -Wl,-soname,liblapacke.so.3 -L.. -lopenblas $(EXTRALIB) ++ ++clean:: ++ rm -f libblas.so.3 libcblas.so.3 liblapack.so.3 diff --git a/sci-libs/openblas/metadata.xml b/sci-libs/openblas/metadata.xml index 0661dad2eee..0f6a98c1f26 100644 --- a/sci-libs/openblas/metadata.xml +++ b/sci-libs/openblas/metadata.xml @@ -33,6 +33,9 @@ Build with pthread threading model + + Build the ReLAPACK extension to OpenBLAS + xiany
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 72b99ba93e05c23aff1c03ecd3c844c598910315 Author: Sam James gentoo org> AuthorDate: Thu Oct 29 09:55:07 2020 + Commit: Sam James gentoo org> CommitDate: Thu Oct 29 09:55:07 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72b99ba9 sci-libs/openblas: arm64 keyworded (bug #751643) Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.10.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.10.ebuild b/sci-libs/openblas/openblas-0.3.10.ebuild index 53118e59ce5..fad54321378 100644 --- a/sci-libs/openblas/openblas-0.3.10.ebuild +++ b/sci-libs/openblas/openblas-0.3.10.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 55152f02716d852f017a32bf2a8cd92ed16b0b77 Author: Sam James gentoo org> AuthorDate: Thu Oct 29 06:38:18 2020 + Commit: Sam James gentoo org> CommitDate: Thu Oct 29 06:38:18 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55152f02 sci-libs/openblas: Keyword 0.3.10 arm, #751643 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/openblas-0.3.10.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.10.ebuild b/sci-libs/openblas/openblas-0.3.10.ebuild index d7d208f1143..53118e59ce5 100644 --- a/sci-libs/openblas/openblas-0.3.10.ebuild +++ b/sci-libs/openblas/openblas-0.3.10.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 52485c17b59d70d274ff969aee4511b54b8ef7e9 Author: Guilherme Amadio gentoo org> AuthorDate: Thu Oct 8 14:19:18 2020 + Commit: Guilherme Amadio gentoo org> CommitDate: Thu Oct 8 14:19:18 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52485c17 sci-libs/openblas: fix double prefix Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Guilherme Amadio gentoo.org> sci-libs/openblas/openblas-0.3.10.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.10.ebuild b/sci-libs/openblas/openblas-0.3.10.ebuild index 9d96c6fa9fd..d7d208f1143 100644 --- a/sci-libs/openblas/openblas-0.3.10.ebuild +++ b/sci-libs/openblas/openblas-0.3.10.ebuild @@ -84,7 +84,7 @@ src_test() { } src_install() { - emake install DESTDIR="${ED}" OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} \ + emake install DESTDIR="${D}" OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} \ OPENBLAS_LIBRARY_DIR='$(PREFIX)'/$(get_libdir) dodoc GotoBLAS_*.txt *.md Changelog.txt
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/files/, sci-libs/openblas/
commit: 5bffd74cd9fafa37de16fe2e30090b80b677b575 Author: Sam James gentoo org> AuthorDate: Fri Sep 18 23:19:02 2020 + Commit: Sam James gentoo org> CommitDate: Fri Sep 18 23:25:00 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bffd74c sci-libs/openblas: bump to 0.3.10 Closes: https://bugs.gentoo.org/727944 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James gentoo.org> sci-libs/openblas/Manifest | 1 + .../openblas-0.3.10-dont-clobber-fflags.patch | 26 sci-libs/openblas/openblas-0.3.10.ebuild | 143 + 3 files changed, 170 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 25f4e19af1a..e916248 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1 +1,2 @@ +DIST openblas-0.3.10.tar.gz 12246979 BLAKE2B 507aa3f058b841f477720cff98480afda5c3e236b688fb1a12ff45ce20c42c6e84c786d62a5db7e6de6d133d40286e58777fcb51d6542b7030629d55ba12086f SHA512 64a5f983b2f6e02cdb6e0f14433498cc5daa1ccfb49246f7a2dcd38f9982fa608f2abea069fe0e35012af8c1441c43d1f6418eaccd40795f5002fed1c36ce05d DIST openblas-0.3.9.tar.gz 12189745 BLAKE2B 3cc4c6a403d6a52845cf4ff8cef254f57587e17e3d09bfb6ed7c02ad06a6002e50b340177c73a944c2a621c12b7f494c516025751c194d019662c0b4db17f4dc SHA512 c6b8ee465f1cf53b37f21ec3ff9a28d5cafe20fec59d8c1bff5923a9e1989dfa5ae8c032a5d43988fe7722ed08c64c7957a3d30e6ae917e2e7aa2977a91e67a3 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 new file mode 100644 index 000..4890b7377ab --- /dev/null +++ b/sci-libs/openblas/files/openblas-0.3.10-dont-clobber-fflags.patch @@ -0,0 +1,26 @@ +Rebased version of previous patch below. + +From 05c96dad9b26cc1f00831661dc55139dcc9d5680 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +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/openblas-0.3.10.ebuild b/sci-libs/openblas/openblas-0.3.10.ebuild new file mode 100644 index 000..9d96c6fa9fd --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.10.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread test" +REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" + +RDEPEND=" + eselect-ldso? ( >=app-eselect/eselect-blas-0.2 + !app-eselect/eselect-cblas + >=app-eselect/eselect-lapack-0.2 )" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/shared-blas-lapack.patch" + "${FILESDIR}/${PN}-0.3.10-dont-clobber-fflags.patch" +) + +pkg_setup() { + fortran-2_pkg_setup + use openmp && tc-check-openmp + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" + + export CC=$(tc-getCC) FC=$(tc-getFC) + + use dynamic && \ + export DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 + + # disable submake with -j + export MAKE_NB_JOBS=-1 + + # Set these to "nothing" to prevent the default optimization flags + # from being added in Makefile.system. + export COMMON_OPT=" " FCOMMON_OPT=" " + + USE_THREAD=0 + if use o
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 281d448b709ea54ad12ddd5ef9d4732199fc655d Author: Agostino Sarubbo gentoo org> AuthorDate: Thu Jun 25 06:57:23 2020 + Commit: Agostino Sarubbo gentoo org> CommitDate: Thu Jun 25 06:57:23 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281d448b sci-libs/openblas: amd64 stable wrt bug #729206 Package-Manager: Portage-2.3.99, Repoman-2.3.22 RepoMan-Options: --include-arches="amd64" Signed-off-by: Agostino Sarubbo gentoo.org> sci-libs/openblas/openblas-0.3.9-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.9-r1.ebuild b/sci-libs/openblas/openblas-0.3.9-r1.ebuild index b0daf6becad..391cd252418 100644 --- a/sci-libs/openblas/openblas-0.3.9-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.9-r1.ebuild @@ -10,7 +10,7 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV} -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" IUSE="dynamic eselect-ldso index-64bit openmp pthread test" REQUIRED_USE="?? ( openmp pthread )" RESTRICT="!test? ( test )"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/, sci-libs/openblas/files/
commit: 6926ff3a439ed76c74d1493cbe28ed3ddda5d952 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jun 11 22:39:32 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jun 11 23:25:13 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6926ff3a sci-libs/openblas: don't clobber FFLAGS while building lapack. Nothing's ever easy, and bug 726474 is turning out to be no exception. The problem goes deeper than I originally thought; this commit adds a patch that prevents "rare and hard to reproduce crashes" when the user has custom FFLAGS set. A new revision was made to force rebuilds in case some user has mis-compiled the package. https://bugs.gentoo.org/726474 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/files/dont-clobber-fflags.patch | 31 ++ ...nblas-0.3.9.ebuild => openblas-0.3.9-r1.ebuild} | 5 +++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/sci-libs/openblas/files/dont-clobber-fflags.patch b/sci-libs/openblas/files/dont-clobber-fflags.patch new file mode 100644 index 000..21bbec4b1b3 --- /dev/null +++ b/sci-libs/openblas/files/dont-clobber-fflags.patch @@ -0,0 +1,31 @@ +From 05c96dad9b26cc1f00831661dc55139dcc9d5680 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +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/openblas-0.3.9.ebuild b/sci-libs/openblas/openblas-0.3.9-r1.ebuild similarity index 97% rename from sci-libs/openblas/openblas-0.3.9.ebuild rename to sci-libs/openblas/openblas-0.3.9-r1.ebuild index 6427d994b30..c47011a3fa6 100644 --- a/sci-libs/openblas/openblas-0.3.9.ebuild +++ b/sci-libs/openblas/openblas-0.3.9-r1.ebuild @@ -22,7 +22,10 @@ RDEPEND=" DEPEND="virtual/pkgconfig" -PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) +PATCHES=( + "${FILESDIR}/shared-blas-lapack.patch" + "${FILESDIR}/dont-clobber-fflags.patch" +) pkg_setup() { fortran-2_pkg_setup
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 45c294854c297e26dff27e88c8d6e0a2405196a8 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jun 11 22:56:55 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jun 11 23:25:15 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45c29485 sci-libs/openblas: earn respect for CFLAGS/FFLAGS. The upstream Makefile.system adds "-O2" to your C/FORTRAN flags if you don't tell it not to. Now we tell it not to, so that you can build at lower optimization levels like -O0. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.9-r1.ebuild | 4 1 file changed, 4 insertions(+) diff --git a/sci-libs/openblas/openblas-0.3.9-r1.ebuild b/sci-libs/openblas/openblas-0.3.9-r1.ebuild index c47011a3fa6..cb255367b63 100644 --- a/sci-libs/openblas/openblas-0.3.9-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.9-r1.ebuild @@ -44,6 +44,10 @@ pkg_setup() { # disable submake with -j export MAKE_NB_JOBS=-1 + # Set these to "nothing" to prevent the default optimization flags + # from being added in Makefile.system. + export COMMON_OPT=" " FCOMMON_OPT=" " + USE_THREAD=0 if use openmp; then USE_THREAD=1; USE_OPENMP=1;
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 18d842851da452a7c6acaa3ea9fc61158bb6bb50 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jun 11 22:59:06 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jun 11 23:25:16 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18d84285 sci-libs/openblas: disable -fcheck=all as well. We already had to disable -fcheck-bounds, but -fcheck=all enables the bounds checks in addition to whatever else it enables, so we have to filter that flag too. Bug: https://bugs.gentoo.org/726474 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.9-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.9-r1.ebuild b/sci-libs/openblas/openblas-0.3.9-r1.ebuild index cb255367b63..b0daf6becad 100644 --- a/sci-libs/openblas/openblas-0.3.9-r1.ebuild +++ b/sci-libs/openblas/openblas-0.3.9-r1.ebuild @@ -34,7 +34,7 @@ pkg_setup() { # We need to filter these while building the library, and not just # while building the test suite. Will hopefully get fixed upstream: # https://github.com/xianyi/OpenBLAS/issues/2657 - use test && filter-flags "-fbounds-check" "-fcheck=bounds" + use test && filter-flags "-fbounds-check" "-fcheck=bounds" "-fcheck=all" export CC=$(tc-getCC) FC=$(tc-getFC)
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: fda29ce6e5030bd8cd700cfba358dcf17b92e8f5 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jun 11 02:44:34 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jun 11 02:45:01 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fda29ce6 sci-libs/openblas: remove older "unused" versions. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/Manifest | 2 - sci-libs/openblas/openblas-0.3.6.ebuild | 127 sci-libs/openblas/openblas-0.3.7.ebuild | 127 3 files changed, 256 deletions(-) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 627ccaecb2d..25f4e19af1a 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,3 +1 @@ -DIST openblas-0.3.6.tar.gz 11923774 BLAKE2B 0133b83a4449fd7f86d6379129be4e4477df338d0a402a7787eec317838922b175315c6e6b014a2c7ed6aa1c58509a28f6b48c641e043af067434c4315f1fdb1 SHA512 e432ae8bfbdc8e8c6336553e05181ab38576164c140ef2a6ddb2a66479f724bd4e60a2c90f7bc15bf18eefa7045e7775dedae421fb71296b8d250132c2407b07 -DIST openblas-0.3.7.tar.gz 11991860 BLAKE2B c4eebcbdda8c15ce384195bd2a57d3638b9a8fa9a0484dc3af9dcef0543e7bbfd8444b65ede36379f2182a9bd3df085070210d289c916dfa428da7ab6889eb43 SHA512 424d1c9c6fd97f6af4fdb7d7dce320cf5eab867a027e576531e39df934358736c4efab88782f781ec8f4afa8d992544040e3bbff3a4736c20cf4256d3a8e517d DIST openblas-0.3.9.tar.gz 12189745 BLAKE2B 3cc4c6a403d6a52845cf4ff8cef254f57587e17e3d09bfb6ed7c02ad06a6002e50b340177c73a944c2a621c12b7f494c516025751c194d019662c0b4db17f4dc SHA512 c6b8ee465f1cf53b37f21ec3ff9a28d5cafe20fec59d8c1bff5923a9e1989dfa5ae8c032a5d43988fe7722ed08c64c7957a3d30e6ae917e2e7aa2977a91e67a3 diff --git a/sci-libs/openblas/openblas-0.3.6.ebuild b/sci-libs/openblas/openblas-0.3.6.ebuild deleted file mode 100644 index 9aa17003313..000 --- a/sci-libs/openblas/openblas-0.3.6.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit fortran-2 toolchain-funcs - -DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; -SRC_URI="https://github.com/xianyi/OpenBLAS/tarball/v${PV} -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread" -REQUIRED_USE="?? ( openmp pthread )" - -RDEPEND=" - eselect-ldso? ( >=app-eselect/eselect-blas-0.2 - !app-eselect/eselect-cblas - >=app-eselect/eselect-lapack-0.2 )" - -DEPEND="virtual/pkgconfig" - -PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) - -pkg_setup() { - fortran-2_pkg_setup - use openmp && tc-check-openmp - export CC=$(tc-getCC) FC=$(tc-getFC) - - use dynamic && \ - export DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 - - # disable submake with -j - export MAKE_NB_JOBS=-1 - - USE_THREAD=0 - if use openmp; then - USE_THREAD=1; USE_OPENMP=1; - elif use pthread; then - USE_THREAD=1; USE_OPENMP=0; - fi - export USE_THREAD USE_OPENMP - - export PREFIX="${EPREFIX}/usr" -} - -src_unpack() { - default - mv "${WORKDIR}"/*OpenBLAS* "${S}" || die - if use index-64bit; then - cp -aL "${S}" "${S}-index-64bit" || die - fi -} - -src_compile() { - emake - emake -Cinterface shared-blas-lapack - if use index-64bit; then - emake -C"${S}-index-64bit" INTERFACE64=1 LIBPREFIX=libopenblas64 - fi -} - -src_test() { - emake tests -} - -src_install() { - emake install DESTDIR="${D}" OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} \ - OPENBLAS_LIBRARY_DIR='$(PREFIX)'/$(get_libdir) - dodoc GotoBLAS_*.txt *.md Changelog.txt - - if use eselect-ldso; then - dodir /usr/$(get_libdir)/blas/openblas/ - insinto /usr/$(get_libdir)/blas/openblas/ - doins interface/libblas.so.3 - dosym libblas.so.3 usr/$(get_libdir)/blas/openblas/libblas.so - doins interface/libcblas.so.3 - dosym libcblas.so.3 usr/$(get_libdir)/blas/openblas/libcblas.so - - dodir /usr/$(get_libdir)/lapack/openblas/ - insinto /usr/$(get_libdir)/lapack/openblas/ - doins interface/liblapack.so.3 - dosym liblapack.so.3 usr/$(get_libdir)/lapack/openblas/liblapack.so - fi - - if use index-64bit; then - insinto /usr/$(get_libdir)/ - dolib.so "${S}-index-64bit"/libopenblas64*.so* - fi -} - -pkg_postinst() { - use eselect-ldso || return - local libdir=$(get_libdir) me="openblas" - - # check blas -
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 57e2be19d17640729372235c4c73171e069d2cca Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jun 11 02:29:20 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jun 11 02:45:00 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e2be19 sci-libs/openblas: fix tests with fortran bounds checking enabled. One OpenBLAS test fails when you enable bounds checks in your fortran compiler via e.g. either "-fbounds-check" or "-fcheck=bounds" with gfortran. This was reported upstream at https://github.com/xianyi/OpenBLAS/issues/2657 but in the meantime the easiest thing to do for *our* users is to filter out those flags when USE=test is set. Thanks to Bernd for reporting the problem on bug 726474. Closes: https://bugs.gentoo.org/726474 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.9.ebuild | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.9.ebuild b/sci-libs/openblas/openblas-0.3.9.ebuild index 15ee8cf93ea..6427d994b30 100644 --- a/sci-libs/openblas/openblas-0.3.9.ebuild +++ b/sci-libs/openblas/openblas-0.3.9.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit fortran-2 toolchain-funcs +inherit flag-o-matic fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; @@ -11,8 +11,9 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV} -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" -IUSE="dynamic eselect-ldso index-64bit openmp pthread" +IUSE="dynamic eselect-ldso index-64bit openmp pthread test" REQUIRED_USE="?? ( openmp pthread )" +RESTRICT="!test? ( test )" RDEPEND=" eselect-ldso? ( >=app-eselect/eselect-blas-0.2 @@ -26,6 +27,12 @@ PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) pkg_setup() { fortran-2_pkg_setup use openmp && tc-check-openmp + + # We need to filter these while building the library, and not just + # while building the test suite. Will hopefully get fixed upstream: + # https://github.com/xianyi/OpenBLAS/issues/2657 + use test && filter-flags "-fbounds-check" "-fcheck=bounds" + export CC=$(tc-getCC) FC=$(tc-getFC) use dynamic && \
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: f141191cff82fe2fddad3d9ddb8bc92a0d647352 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Jun 11 02:43:47 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Thu Jun 11 02:45:00 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f141191c sci-libs/openblas: enlongen the longdesc in metadata.xml. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/metadata.xml | 56 +++--- 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/sci-libs/openblas/metadata.xml b/sci-libs/openblas/metadata.xml index fa16b081f10..0661dad2eee 100644 --- a/sci-libs/openblas/metadata.xml +++ b/sci-libs/openblas/metadata.xml @@ -1,24 +1,40 @@ http://www.gentoo.org/dtd/metadata.dtd";> - - s...@gentoo.org - Gentoo Science Project - - - lu...@debian.org - Mo Zhou - - - OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. - - - Build dynamic architecture detection at run time (for multi targets) - Enable BLAS/LAPACK runtime switching - Compile a separate INTERFACE64 OpenBLAS - Build with pthread threading model - - - xianyi/OpenBLAS - + +s...@gentoo.org +Gentoo Science Project + + +lu...@debian.org +Mo Zhou + + +OpenBLAS is an optimized Basic Linear Algebra Subprograms (BLAS) +library based on GotoBLAS2 1.13 BSD version. It was forked when +Mr. Kazushige Goto left TACC and GotoBLAS became unmaintained. In +general, BLAS is the computational kernel ("the bottom of the food +chain") in linear algebra or scientific applications. Thus, if +your BLAS implementation is highly optimized, the whole +application can substantially benefit. OpenBLAS has optimized code +for modern architectures, and has accrued many other features and +bug fixes beyond GotoBLAS. + + + + Build dynamic architecture detection at run time (for multi targets) + + + Enable BLAS/LAPACK runtime switching + + + Compile a separate INTERFACE64 OpenBLAS + + + Build with pthread threading model + + + +xianyi/OpenBLAS +
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 854217442d0dd3cee5dc6ae5ab9426ef510abc24 Author: Michael Orlitzky gentoo org> AuthorDate: Wed Jun 10 20:55:53 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Wed Jun 10 20:57:31 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85421744 sci-libs/openblas: update obsolete github URL (tarball -> archive). Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.9.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/openblas/openblas-0.3.9.ebuild b/sci-libs/openblas/openblas-0.3.9.ebuild index c2d03ffc6f7..15ee8cf93ea 100644 --- a/sci-libs/openblas/openblas-0.3.9.ebuild +++ b/sci-libs/openblas/openblas-0.3.9.ebuild @@ -6,7 +6,7 @@ inherit fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; -SRC_URI="https://github.com/xianyi/OpenBLAS/tarball/v${PV} -> ${P}.tar.gz" +SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV} -> ${P}.tar.gz" LICENSE="BSD" SLOT="0"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 6d1f73843cfa098305c04f5aab4b6f608af00455 Author: Michael Orlitzky gentoo org> AuthorDate: Wed Jun 10 20:51:25 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Wed Jun 10 20:57:30 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d1f7384 sci-libs/openblas: remove redundant dodirs in the latest version. Bernd noticed this while working on bug 726474. This part of the changeset is obviously correct, so let's get it out of the way. Bug: https://bugs.gentoo.org/726474 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.9.ebuild | 2 -- 1 file changed, 2 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.9.ebuild b/sci-libs/openblas/openblas-0.3.9.ebuild index c200d21b519..c2d03ffc6f7 100644 --- a/sci-libs/openblas/openblas-0.3.9.ebuild +++ b/sci-libs/openblas/openblas-0.3.9.ebuild @@ -73,14 +73,12 @@ src_install() { dodoc GotoBLAS_*.txt *.md Changelog.txt if use eselect-ldso; then - dodir /usr/$(get_libdir)/blas/openblas/ insinto /usr/$(get_libdir)/blas/openblas/ doins interface/libblas.so.3 dosym libblas.so.3 usr/$(get_libdir)/blas/openblas/libblas.so doins interface/libcblas.so.3 dosym libcblas.so.3 usr/$(get_libdir)/blas/openblas/libcblas.so - dodir /usr/$(get_libdir)/lapack/openblas/ insinto /usr/$(get_libdir)/lapack/openblas/ doins interface/liblapack.so.3 dosym liblapack.so.3 usr/$(get_libdir)/lapack/openblas/liblapack.so
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: ce743c3eb6cdaf8780d9380c10a3c476c695ee1f Author: Michael Orlitzky gentoo org> AuthorDate: Tue Jun 9 20:53:45 2020 + Commit: Michael Orlitzky gentoo org> CommitDate: Tue Jun 9 21:02:11 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce743c3e sci-libs/openblas: fix AR usage in the latest version. Upstream sets $AR unconditionally in a non-autotools Makefile, so we have to try extra hard to override it. Closes: https://bugs.gentoo.org/725608 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky gentoo.org> sci-libs/openblas/openblas-0.3.9.ebuild | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.9.ebuild b/sci-libs/openblas/openblas-0.3.9.ebuild index 9aa17003313..c200d21b519 100644 --- a/sci-libs/openblas/openblas-0.3.9.ebuild +++ b/sci-libs/openblas/openblas-0.3.9.ebuild @@ -54,8 +54,10 @@ src_unpack() { } src_compile() { - emake - emake -Cinterface shared-blas-lapack + # We have to try extra hard to override AR for now. + # https://github.com/xianyi/OpenBLAS/issues/2654 + emake AR="$(tc-getAR)" + emake AR="$(tc-getAR)" -Cinterface shared-blas-lapack if use index-64bit; then emake -C"${S}-index-64bit" INTERFACE64=1 LIBPREFIX=libopenblas64 fi
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 6ccd5f8d47ca9e5ddcdcf6e09ef7f10b1197fbe8 Author: Benda Xu gentoo org> AuthorDate: Thu Mar 26 04:44:30 2020 + Commit: Benda XU gentoo org> CommitDate: Thu Mar 26 04:45:32 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ccd5f8d sci-libs/openblas: version bump. Closes: https://bugs.gentoo.org/714598 Package-Manager: Portage-2.3.88, Repoman-2.3.18 Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.9.ebuild | 127 2 files changed, 128 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index d1b62bde629..627ccaecb2d 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,2 +1,3 @@ DIST openblas-0.3.6.tar.gz 11923774 BLAKE2B 0133b83a4449fd7f86d6379129be4e4477df338d0a402a7787eec317838922b175315c6e6b014a2c7ed6aa1c58509a28f6b48c641e043af067434c4315f1fdb1 SHA512 e432ae8bfbdc8e8c6336553e05181ab38576164c140ef2a6ddb2a66479f724bd4e60a2c90f7bc15bf18eefa7045e7775dedae421fb71296b8d250132c2407b07 DIST openblas-0.3.7.tar.gz 11991860 BLAKE2B c4eebcbdda8c15ce384195bd2a57d3638b9a8fa9a0484dc3af9dcef0543e7bbfd8444b65ede36379f2182a9bd3df085070210d289c916dfa428da7ab6889eb43 SHA512 424d1c9c6fd97f6af4fdb7d7dce320cf5eab867a027e576531e39df934358736c4efab88782f781ec8f4afa8d992544040e3bbff3a4736c20cf4256d3a8e517d +DIST openblas-0.3.9.tar.gz 12189745 BLAKE2B 3cc4c6a403d6a52845cf4ff8cef254f57587e17e3d09bfb6ed7c02ad06a6002e50b340177c73a944c2a621c12b7f494c516025751c194d019662c0b4db17f4dc SHA512 c6b8ee465f1cf53b37f21ec3ff9a28d5cafe20fec59d8c1bff5923a9e1989dfa5ae8c032a5d43988fe7722ed08c64c7957a3d30e6ae917e2e7aa2977a91e67a3 diff --git a/sci-libs/openblas/openblas-0.3.9.ebuild b/sci-libs/openblas/openblas-0.3.9.ebuild new file mode 100644 index 000..9aa17003313 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.9.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread" +REQUIRED_USE="?? ( openmp pthread )" + +RDEPEND=" + eselect-ldso? ( >=app-eselect/eselect-blas-0.2 + !app-eselect/eselect-cblas + >=app-eselect/eselect-lapack-0.2 )" + +DEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) + +pkg_setup() { + fortran-2_pkg_setup + use openmp && tc-check-openmp + export CC=$(tc-getCC) FC=$(tc-getFC) + + use dynamic && \ + export DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 + + # disable submake with -j + export MAKE_NB_JOBS=-1 + + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + export PREFIX="${EPREFIX}/usr" +} + +src_unpack() { + default + mv "${WORKDIR}"/*OpenBLAS* "${S}" || die + if use index-64bit; then + cp -aL "${S}" "${S}-index-64bit" || die + fi +} + +src_compile() { + emake + emake -Cinterface shared-blas-lapack + if use index-64bit; then + emake -C"${S}-index-64bit" INTERFACE64=1 LIBPREFIX=libopenblas64 + fi +} + +src_test() { + emake tests +} + +src_install() { + emake install DESTDIR="${D}" OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} \ + OPENBLAS_LIBRARY_DIR='$(PREFIX)'/$(get_libdir) + dodoc GotoBLAS_*.txt *.md Changelog.txt + + if use eselect-ldso; then + dodir /usr/$(get_libdir)/blas/openblas/ + insinto /usr/$(get_libdir)/blas/openblas/ + doins interface/libblas.so.3 + dosym libblas.so.3 usr/$(get_libdir)/blas/openblas/libblas.so + doins interface/libcblas.so.3 + dosym libcblas.so.3 usr/$(get_libdir)/blas/openblas/libcblas.so + + dodir /usr/$(get_libdir)/lapack/openblas/ + insinto /usr/$(get_libdir)/lapack/openblas/ + doins interface/liblapack.so.3 + dosym liblapack.so.3 usr/$(get_libdir)/lapack/openblas/liblapack.so + fi + + if use index-64bit; then + insinto /usr/$(get_libdir)/ + dolib.so "${S}-index-64bit"/libopenblas64*.so* + fi +} + +pkg_postinst() { + use eselect-ldso || return + local libdir=$(get_libdir) me="openblas" + + # check blas + eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me} + lo
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 339801c4b55db392e5cad59e3c881ac61e05 Author: Mo Zhou gmail com> AuthorDate: Sun Sep 1 05:29:55 2019 + Commit: Benda XU gentoo org> CommitDate: Wed Sep 4 08:20:59 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=339801c8 sci-libs/openblas: add new version 0.3.7 Closes: https://github.com/gentoo/gentoo/pull/12742 Signed-off-by: Mo Zhou gmail.com> Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.7.ebuild | 127 2 files changed, 128 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 380d03deca4..d1b62bde629 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1 +1,2 @@ DIST openblas-0.3.6.tar.gz 11923774 BLAKE2B 0133b83a4449fd7f86d6379129be4e4477df338d0a402a7787eec317838922b175315c6e6b014a2c7ed6aa1c58509a28f6b48c641e043af067434c4315f1fdb1 SHA512 e432ae8bfbdc8e8c6336553e05181ab38576164c140ef2a6ddb2a66479f724bd4e60a2c90f7bc15bf18eefa7045e7775dedae421fb71296b8d250132c2407b07 +DIST openblas-0.3.7.tar.gz 11991860 BLAKE2B c4eebcbdda8c15ce384195bd2a57d3638b9a8fa9a0484dc3af9dcef0543e7bbfd8444b65ede36379f2182a9bd3df085070210d289c916dfa428da7ab6889eb43 SHA512 424d1c9c6fd97f6af4fdb7d7dce320cf5eab867a027e576531e39df934358736c4efab88782f781ec8f4afa8d992544040e3bbff3a4736c20cf4256d3a8e517d diff --git a/sci-libs/openblas/openblas-0.3.7.ebuild b/sci-libs/openblas/openblas-0.3.7.ebuild new file mode 100644 index 000..f52bf5c6ece --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.7.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit fortran-2 toolchain-funcs + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="dynamic eselect-ldso index-64bit openmp pthread" +REQUIRED_USE="?? ( openmp pthread )" + +RDEPEND=" + eselect-ldso? ( >=app-eselect/eselect-blas-0.2 + !app-eselect/eselect-cblas + >=app-eselect/eselect-lapack-0.2 )" + +DEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) + +pkg_setup() { + fortran-2_pkg_setup + use openmp && tc-check-openmp + export CC=$(tc-getCC) FC=$(tc-getFC) + + use dynamic && \ + export DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 + + # disable submake with -j + export MAKE_NB_JOBS=-1 + + USE_THREAD=0 + if use openmp; then + USE_THREAD=1; USE_OPENMP=1; + elif use pthread; then + USE_THREAD=1; USE_OPENMP=0; + fi + export USE_THREAD USE_OPENMP + + export PREFIX="${EPREFIX}/usr" +} + +src_unpack () { + default + mv "${WORKDIR}"/*OpenBLAS* "${S}" || die + if use index-64bit; then + cp -aL "${S}" "${S}-index-64bit" || die + fi +} + +src_compile () { + emake + emake -Cinterface shared-blas-lapack + if use index-64bit; then + emake -C"${S}-index-64bit" INTERFACE64=1 LIBPREFIX=libopenblas64 + fi +} + +src_test() { + emake tests +} + +src_install () { + emake install DESTDIR="${D}" OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} \ + OPENBLAS_LIBRARY_DIR='$(PREFIX)'/$(get_libdir) + dodoc GotoBLAS_*.txt *.md Changelog.txt + + if use eselect-ldso; then + dodir /usr/$(get_libdir)/blas/openblas/ + insinto /usr/$(get_libdir)/blas/openblas/ + doins interface/libblas.so.3 + dosym libblas.so.3 usr/$(get_libdir)/blas/openblas/libblas.so + doins interface/libcblas.so.3 + dosym libcblas.so.3 usr/$(get_libdir)/blas/openblas/libcblas.so + + dodir /usr/$(get_libdir)/lapack/openblas/ + insinto /usr/$(get_libdir)/lapack/openblas/ + doins interface/liblapack.so.3 + dosym liblapack.so.3 usr/$(get_libdir)/lapack/openblas/liblapack.so + fi + + if use index-64bit; then + insinto /usr/$(get_libdir)/ + dolib.so "${S}-index-64bit"/libopenblas64*.so* + fi +} + +pkg_postinst () { + use eselect-ldso || return + local libdir=$(get_libdir) me="openblas" + + # check blas + eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me} + local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2) + if [[ ${current_blas} == "${me}" || -z ${current_blas} ]]; then + eselect blas set ${libdir} ${me} + elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." + else + elog "
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 64ff822f7d122a08ab0043641401df9207800a5c Author: Benda Xu gentoo org> AuthorDate: Sun Aug 4 14:47:19 2019 + Commit: Benda XU gentoo org> CommitDate: Sun Aug 4 14:47:51 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ff822f sci-libs/openblas: use pkg_setup to do the build env and checks. Closes: https://github.com/gentoo/gentoo/pull/12576 Package-Manager: Portage-2.3.69, Repoman-2.3.12 Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/openblas-0.3.6.ebuild | 47 +++-- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/sci-libs/openblas/openblas-0.3.6.ebuild b/sci-libs/openblas/openblas-0.3.6.ebuild index 3a91ce44fc1..f52bf5c6ece 100644 --- a/sci-libs/openblas/openblas-0.3.6.ebuild +++ b/sci-libs/openblas/openblas-0.3.6.ebuild @@ -23,32 +23,26 @@ DEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) -src_prepare() { - default - # Set compiler and common CFLAGS. - sed \ - -e "/^#\s*CC/cCC=$(tc-getCC)" \ - -e "/^#\s*FC/cFC=$(tc-getFC)" \ - -e "/^#\s*COMMON_OPT/cCOMMON_OPT=${CFLAGS}" \ - -i "${S}"/Makefile.rule || die -} +pkg_setup() { + fortran-2_pkg_setup + use openmp && tc-check-openmp + export CC=$(tc-getCC) FC=$(tc-getFC) -openblas_flags() { - local flags=() use dynamic && \ - flags+=( DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 ) + export DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 + + # disable submake with -j + export MAKE_NB_JOBS=-1 + + USE_THREAD=0 if use openmp; then - tc-check-openmp - flags+=( USE_THREAD=1 USE_OPENMP=1 ) + USE_THREAD=1; USE_OPENMP=1; elif use pthread; then - flags+=( USE_THREAD=1 USE_OPENMP=0 ) - else - flags+=( USE_THREAD=0 ) # serial + USE_THREAD=1; USE_OPENMP=0; fi - flags+=( DESTDIR="${D}" PREFIX="${EPREFIX}/usr" ) - flags+=( OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} ) - flags+=( OPENBLAS_LIBRARY_DIR='$(PREFIX)'/$(get_libdir) ) - echo "${flags[@]}" + export USE_THREAD USE_OPENMP + + export PREFIX="${EPREFIX}/usr" } src_unpack () { @@ -60,19 +54,20 @@ src_unpack () { } src_compile () { - emake $(openblas_flags) - emake -Cinterface shared-blas-lapack $(openblas_flags) + emake + emake -Cinterface shared-blas-lapack if use index-64bit; then - emake -C"${S}-index-64bit" $(openblas_flags) INTERFACE64=1 LIBPREFIX=libopenblas64 + emake -C"${S}-index-64bit" INTERFACE64=1 LIBPREFIX=libopenblas64 fi } src_test() { - emake tests $(openblas_flags) + emake tests } src_install () { - emake install $(openblas_flags) + emake install DESTDIR="${D}" OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} \ + OPENBLAS_LIBRARY_DIR='$(PREFIX)'/$(get_libdir) dodoc GotoBLAS_*.txt *.md Changelog.txt if use eselect-ldso; then
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: da91e23c3cb3a5acd9998912990981b9df7921d9 Author: Benda Xu gentoo org> AuthorDate: Sun Aug 4 13:12:33 2019 + Commit: Benda XU gentoo org> CommitDate: Sun Aug 4 13:12:57 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da91e23c sci-libs/openblas: Allow custom CFLAGS and add fortran checks. Drop unused USE flags. Suggested-By: Hasan ÇALIŞIR psauxit.com> Closes: https://github.com/gentoo/gentoo/pull/12576 Package-Manager: Portage-2.3.69, Repoman-2.3.12 Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/metadata.xml | 3 +-- sci-libs/openblas/openblas-0.3.6.ebuild | 29 ++--- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/sci-libs/openblas/metadata.xml b/sci-libs/openblas/metadata.xml index 95b34d1ccda..fa16b081f10 100644 --- a/sci-libs/openblas/metadata.xml +++ b/sci-libs/openblas/metadata.xml @@ -14,10 +14,9 @@ Build dynamic architecture detection at run time (for multi targets) - Build with pthread threadding model - Build without multi-thraedding Enable BLAS/LAPACK runtime switching Compile a separate INTERFACE64 OpenBLAS + Build with pthread threading model xianyi/OpenBLAS diff --git a/sci-libs/openblas/openblas-0.3.6.ebuild b/sci-libs/openblas/openblas-0.3.6.ebuild index 19c3b79f258..3a91ce44fc1 100644 --- a/sci-libs/openblas/openblas-0.3.6.ebuild +++ b/sci-libs/openblas/openblas-0.3.6.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit toolchain-funcs +inherit fortran-2 toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; @@ -11,18 +11,28 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/tarball/v${PV} -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" -IUSE="dynamic openmp pthread serial static-libs eselect-ldso index-64bit" -REQUIRED_USE="?? ( openmp pthread serial )" +IUSE="dynamic eselect-ldso index-64bit openmp pthread" +REQUIRED_USE="?? ( openmp pthread )" RDEPEND=" -eselect-ldso? ( >=app-eselect/eselect-blas-0.2 - !app-eselect/eselect-cblas - >=app-eselect/eselect-lapack-0.2 ) -" + eselect-ldso? ( >=app-eselect/eselect-blas-0.2 + !app-eselect/eselect-cblas + >=app-eselect/eselect-lapack-0.2 )" + DEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) +src_prepare() { + default + # Set compiler and common CFLAGS. + sed \ + -e "/^#\s*CC/cCC=$(tc-getCC)" \ + -e "/^#\s*FC/cFC=$(tc-getFC)" \ + -e "/^#\s*COMMON_OPT/cCOMMON_OPT=${CFLAGS}" \ + -i "${S}"/Makefile.rule || die +} + openblas_flags() { local flags=() use dynamic && \ @@ -57,8 +67,13 @@ src_compile () { fi } +src_test() { + emake tests $(openblas_flags) +} + src_install () { emake install $(openblas_flags) + dodoc GotoBLAS_*.txt *.md Changelog.txt if use eselect-ldso; then dodir /usr/$(get_libdir)/blas/openblas/
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 6f8c6e2ff2ce44b177c36bf7b44fe0ea9aa73a33 Author: Mo Zhou gmail com> AuthorDate: Fri Jul 19 13:17:05 2019 + Commit: Benda XU gentoo org> CommitDate: Wed Jul 24 14:07:21 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f8c6e2f sci-libs/openblas: remove 0.3.5 version. Signed-off-by: Mo Zhou gmail.com> Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/Manifest | 1 - sci-libs/openblas/openblas-0.3.5.ebuild | 105 2 files changed, 106 deletions(-) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 87307912432..380d03deca4 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1,2 +1 @@ -DIST openblas-0.3.5.tar.gz 11853101 BLAKE2B a9b249bc397fcb1d80401d1c60c6985803016e4fd0908649fe6386ae84a09a53569814b3af65fd8fbfa92f2cdd5d4af313ba91a80f7daa7e481a7941cbb9af2c SHA512 15520c3eca79b002f1afbee64257afa24705dec667a89bd46acfcdae426e29342816fb586db98ff256fcc9d0fd744b14b347fed23995958e7646a5e3e7310cf4 DIST openblas-0.3.6.tar.gz 11923774 BLAKE2B 0133b83a4449fd7f86d6379129be4e4477df338d0a402a7787eec317838922b175315c6e6b014a2c7ed6aa1c58509a28f6b48c641e043af067434c4315f1fdb1 SHA512 e432ae8bfbdc8e8c6336553e05181ab38576164c140ef2a6ddb2a66479f724bd4e60a2c90f7bc15bf18eefa7045e7775dedae421fb71296b8d250132c2407b07 diff --git a/sci-libs/openblas/openblas-0.3.5.ebuild b/sci-libs/openblas/openblas-0.3.5.ebuild deleted file mode 100644 index ba14ee30b53..000 --- a/sci-libs/openblas/openblas-0.3.5.ebuild +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="Optimized BLAS library based on GotoBLAS2" -HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; -SRC_URI="https://github.com/xianyi/OpenBLAS/tarball/v${PV} -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" -IUSE="dynamic openmp pthread serial static-libs eselect-ldso" -REQUIRED_USE="?? ( openmp pthread serial )" - -RDEPEND=" -eselect-ldso? ( >=app-eselect/eselect-blas-0.2 - !app-eselect/eselect-cblas - >=app-eselect/eselect-lapack-0.2 ) -" -DEPEND="virtual/pkgconfig" - -PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) - -openblas_flags() { - local flags=() - use dynamic && \ - flags+=( DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 ) - if use openmp; then - flags+=( USE_THREAD=1 USE_OPENMP=1 ) - elif use pthread; then - flags+=( USE_THREAD=1 USE_OPENMP=0 ) - else - flags+=( USE_THREAD=0 ) # serial - fi - flags+=( DESTDIR="${D}" PREFIX="${EPREFIX}/usr" ) - flags+=( OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} ) - flags+=( OPENBLAS_LIBRARY_DIR='$(PREFIX)'/$(get_libdir) ) - echo "${flags[@]}" -} - -src_unpack () { - default - find "${WORKDIR}" -maxdepth 1 -type d -name \*OpenBLAS\* && \ - mv "${WORKDIR}"/*OpenBLAS* "${S}" || die -} - -src_compile () { - emake $(openblas_flags) - emake -Cinterface shared-blas-lapack $(openblas_flags) -} - -src_install () { - emake install $(openblas_flags) - - if use eselect-ldso; then - dodir /usr/$(get_libdir)/blas/openblas/ - insinto /usr/$(get_libdir)/blas/openblas/ - doins interface/libblas.so.3 - dosym libblas.so.3 usr/$(get_libdir)/blas/openblas/libblas.so - doins interface/libcblas.so.3 - dosym libcblas.so.3 usr/$(get_libdir)/blas/openblas/libcblas.so - - dodir /usr/$(get_libdir)/lapack/openblas/ - insinto /usr/$(get_libdir)/lapack/openblas/ - doins interface/liblapack.so.3 - dosym liblapack.so.3 usr/$(get_libdir)/lapack/openblas/liblapack.so - fi -} - -pkg_postinst () { - use eselect-ldso || return - local libdir=$(get_libdir) me="openblas" - - # check blas - eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me} - local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2) - if [[ ${current_blas} == "${me}" || -z ${current_blas} ]]; then - eselect blas set ${libdir} ${me} - elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." - else - elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." - elog "To use blas [${me}] implementation, you have to issue (as root):" - elog "\t eselect blas set ${libdir} ${me}" - fi - - # check lapack - eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me} - local current_lapack=$(eselect lapack show ${libdir} | cut -d' ' -f2) - if [[ ${current_lapack} == "${me}" || -z ${current_lapack} ]];
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 1026670c08c3b7bbc801565e9f36feb8e15fcc50 Author: Mo Zhou gmail com> AuthorDate: Mon Jul 22 11:47:17 2019 + Commit: Benda XU gentoo org> CommitDate: Wed Jul 24 14:08:13 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1026670c sci-libs/openblas-0.3.6: add index-64bit support. Closes: https://github.com/gentoo/gentoo/pull/12475 Signed-off-by: Mo Zhou gmail.com> Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/metadata.xml | 1 + sci-libs/openblas/openblas-0.3.6.ebuild | 18 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/sci-libs/openblas/metadata.xml b/sci-libs/openblas/metadata.xml index 987eb126d9c..95b34d1ccda 100644 --- a/sci-libs/openblas/metadata.xml +++ b/sci-libs/openblas/metadata.xml @@ -17,6 +17,7 @@ Build with pthread threadding model Build without multi-thraedding Enable BLAS/LAPACK runtime switching + Compile a separate INTERFACE64 OpenBLAS xianyi/OpenBLAS diff --git a/sci-libs/openblas/openblas-0.3.6.ebuild b/sci-libs/openblas/openblas-0.3.6.ebuild index ba14ee30b53..19c3b79f258 100644 --- a/sci-libs/openblas/openblas-0.3.6.ebuild +++ b/sci-libs/openblas/openblas-0.3.6.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 +inherit toolchain-funcs DESCRIPTION="Optimized BLAS library based on GotoBLAS2" HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; @@ -10,7 +11,7 @@ SRC_URI="https://github.com/xianyi/OpenBLAS/tarball/v${PV} -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" -IUSE="dynamic openmp pthread serial static-libs eselect-ldso" +IUSE="dynamic openmp pthread serial static-libs eselect-ldso index-64bit" REQUIRED_USE="?? ( openmp pthread serial )" RDEPEND=" @@ -27,6 +28,7 @@ openblas_flags() { use dynamic && \ flags+=( DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 ) if use openmp; then + tc-check-openmp flags+=( USE_THREAD=1 USE_OPENMP=1 ) elif use pthread; then flags+=( USE_THREAD=1 USE_OPENMP=0 ) @@ -41,13 +43,18 @@ openblas_flags() { src_unpack () { default - find "${WORKDIR}" -maxdepth 1 -type d -name \*OpenBLAS\* && \ - mv "${WORKDIR}"/*OpenBLAS* "${S}" || die + mv "${WORKDIR}"/*OpenBLAS* "${S}" || die + if use index-64bit; then + cp -aL "${S}" "${S}-index-64bit" || die + fi } src_compile () { emake $(openblas_flags) emake -Cinterface shared-blas-lapack $(openblas_flags) + if use index-64bit; then + emake -C"${S}-index-64bit" $(openblas_flags) INTERFACE64=1 LIBPREFIX=libopenblas64 + fi } src_install () { @@ -66,6 +73,11 @@ src_install () { doins interface/liblapack.so.3 dosym liblapack.so.3 usr/$(get_libdir)/lapack/openblas/liblapack.so fi + + if use index-64bit; then + insinto /usr/$(get_libdir)/ + dolib.so "${S}-index-64bit"/libopenblas64*.so* + fi } pkg_postinst () {
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: 6a35cc5ec7083d71efe5c8db717fe824f7096446 Author: Mo Zhou gmail com> AuthorDate: Thu Jul 11 05:28:40 2019 + Commit: Benda XU gentoo org> CommitDate: Thu Jul 11 11:12:23 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a35cc5e sci-libs/openblas: bump to 0.3.6, solving problem with gcc-9.1.0 . Closes: https://github.com/gentoo/gentoo/pull/12423 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Mo Zhou gmail.com> Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/openblas-0.3.6.ebuild | 105 2 files changed, 106 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest index 8ebcf20cda7..87307912432 100644 --- a/sci-libs/openblas/Manifest +++ b/sci-libs/openblas/Manifest @@ -1 +1,2 @@ DIST openblas-0.3.5.tar.gz 11853101 BLAKE2B a9b249bc397fcb1d80401d1c60c6985803016e4fd0908649fe6386ae84a09a53569814b3af65fd8fbfa92f2cdd5d4af313ba91a80f7daa7e481a7941cbb9af2c SHA512 15520c3eca79b002f1afbee64257afa24705dec667a89bd46acfcdae426e29342816fb586db98ff256fcc9d0fd744b14b347fed23995958e7646a5e3e7310cf4 +DIST openblas-0.3.6.tar.gz 11923774 BLAKE2B 0133b83a4449fd7f86d6379129be4e4477df338d0a402a7787eec317838922b175315c6e6b014a2c7ed6aa1c58509a28f6b48c641e043af067434c4315f1fdb1 SHA512 e432ae8bfbdc8e8c6336553e05181ab38576164c140ef2a6ddb2a66479f724bd4e60a2c90f7bc15bf18eefa7045e7775dedae421fb71296b8d250132c2407b07 diff --git a/sci-libs/openblas/openblas-0.3.6.ebuild b/sci-libs/openblas/openblas-0.3.6.ebuild new file mode 100644 index 000..ba14ee30b53 --- /dev/null +++ b/sci-libs/openblas/openblas-0.3.6.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Optimized BLAS library based on GotoBLAS2" +HOMEPAGE="http://xianyi.github.com/OpenBLAS/"; +SRC_URI="https://github.com/xianyi/OpenBLAS/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="dynamic openmp pthread serial static-libs eselect-ldso" +REQUIRED_USE="?? ( openmp pthread serial )" + +RDEPEND=" +eselect-ldso? ( >=app-eselect/eselect-blas-0.2 + !app-eselect/eselect-cblas + >=app-eselect/eselect-lapack-0.2 ) +" +DEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) + +openblas_flags() { + local flags=() + use dynamic && \ + flags+=( DYNAMIC_ARCH=1 TARGET=GENERIC NUM_THREADS=64 NO_AFFINITY=1 ) + if use openmp; then + flags+=( USE_THREAD=1 USE_OPENMP=1 ) + elif use pthread; then + flags+=( USE_THREAD=1 USE_OPENMP=0 ) + else + flags+=( USE_THREAD=0 ) # serial + fi + flags+=( DESTDIR="${D}" PREFIX="${EPREFIX}/usr" ) + flags+=( OPENBLAS_INCLUDE_DIR='$(PREFIX)'/include/${PN} ) + flags+=( OPENBLAS_LIBRARY_DIR='$(PREFIX)'/$(get_libdir) ) + echo "${flags[@]}" +} + +src_unpack () { + default + find "${WORKDIR}" -maxdepth 1 -type d -name \*OpenBLAS\* && \ + mv "${WORKDIR}"/*OpenBLAS* "${S}" || die +} + +src_compile () { + emake $(openblas_flags) + emake -Cinterface shared-blas-lapack $(openblas_flags) +} + +src_install () { + emake install $(openblas_flags) + + if use eselect-ldso; then + dodir /usr/$(get_libdir)/blas/openblas/ + insinto /usr/$(get_libdir)/blas/openblas/ + doins interface/libblas.so.3 + dosym libblas.so.3 usr/$(get_libdir)/blas/openblas/libblas.so + doins interface/libcblas.so.3 + dosym libcblas.so.3 usr/$(get_libdir)/blas/openblas/libcblas.so + + dodir /usr/$(get_libdir)/lapack/openblas/ + insinto /usr/$(get_libdir)/lapack/openblas/ + doins interface/liblapack.so.3 + dosym liblapack.so.3 usr/$(get_libdir)/lapack/openblas/liblapack.so + fi +} + +pkg_postinst () { + use eselect-ldso || return + local libdir=$(get_libdir) me="openblas" + + # check blas + eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me} + local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2) + if [[ ${current_blas} == "${me}" || -z ${current_blas} ]]; then + eselect blas set ${libdir} ${me} + elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." + else + elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." + elog "To use blas [${me}] implementation, you have to issue (as root):" + elog "\t eselect blas set ${libdir} ${me}" + fi + + # check lapack + eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me} + local current_la
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
commit: c84cc07add2d8a5351d07e6797e8fd7c24e4af21 Author: Mo Zhou gmail com> AuthorDate: Thu Jul 11 02:53:07 2019 + Commit: Benda XU gentoo org> CommitDate: Thu Jul 11 10:55:22 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84cc07a sci-libs/openblas: add the missing postinst steps and maintainer. Closes: https://github.com/gentoo/gentoo/pull/12422 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Mo Zhou gmail.com> Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/metadata.xml | 4 sci-libs/openblas/openblas-0.3.5.ebuild | 40 - 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/sci-libs/openblas/metadata.xml b/sci-libs/openblas/metadata.xml index a5e019212f0..987eb126d9c 100644 --- a/sci-libs/openblas/metadata.xml +++ b/sci-libs/openblas/metadata.xml @@ -5,6 +5,10 @@ s...@gentoo.org Gentoo Science Project + + lu...@debian.org + Mo Zhou + OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. diff --git a/sci-libs/openblas/openblas-0.3.5.ebuild b/sci-libs/openblas/openblas-0.3.5.ebuild index b41803760ae..ba14ee30b53 100644 --- a/sci-libs/openblas/openblas-0.3.5.ebuild +++ b/sci-libs/openblas/openblas-0.3.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -14,11 +14,11 @@ IUSE="dynamic openmp pthread serial static-libs eselect-ldso" REQUIRED_USE="?? ( openmp pthread serial )" RDEPEND=" ->=app-eselect/eselect-blas-0.2 ->=app-eselect/eselect-lapack-0.2 +eselect-ldso? ( >=app-eselect/eselect-blas-0.2 + !app-eselect/eselect-cblas + >=app-eselect/eselect-lapack-0.2 ) " -DEPEND="${RDEPEND} - virtual/pkgconfig" +DEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}/shared-blas-lapack.patch" ) @@ -69,11 +69,31 @@ src_install () { } pkg_postinst () { - if use eselect-ldso; then - eselect blas add $(get_libdir) \ - "${EROOT}"/usr/$(get_libdir)/blas/openblas openblas - eselect lapack add $(get_libdir) \ - "${EROOT}"/usr/$(get_libdir)/lapack/openblas openblas + use eselect-ldso || return + local libdir=$(get_libdir) me="openblas" + + # check blas + eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me} + local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2) + if [[ ${current_blas} == "${me}" || -z ${current_blas} ]]; then + eselect blas set ${libdir} ${me} + elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." + else + elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." + elog "To use blas [${me}] implementation, you have to issue (as root):" + elog "\t eselect blas set ${libdir} ${me}" + fi + + # check lapack + eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me} + local current_lapack=$(eselect lapack show ${libdir} | cut -d' ' -f2) + if [[ ${current_lapack} == "${me}" || -z ${current_lapack} ]]; then + eselect lapack set ${libdir} ${me} + elog "Current eselect: LAPACK ($libdir) -> [${current_lapack}]." + else + elog "Current eselect: LAPACK ($libdir) -> [${current_lapack}]." + elog "To use lapack [${me}] implementation, you have to issue (as root):" + elog "\t eselect lapack set ${libdir} ${me}" fi }
[gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/, sci-libs/openblas/files/
commit: 62f95abf6b504a047c22500f5e95364ddc594010 Author: Mo Zhou gmail com> AuthorDate: Sat Jul 6 05:05:54 2019 + Commit: Benda XU gentoo org> CommitDate: Sat Jul 6 15:47:42 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62f95abf sci-libs/openblas: new package with eselect-ldso feature integrated. Closes: https://bugs.gentoo.org/584534 Closes: https://bugs.gentoo.org/658034 Closes: https://github.com/gentoo/gentoo/pull/12357 Signed-off-by: Mo Zhou gmail.com> Signed-off-by: Benda Xu gentoo.org> sci-libs/openblas/Manifest | 1 + sci-libs/openblas/files/shared-blas-lapack.patch | 137 +++ sci-libs/openblas/metadata.xml | 20 sci-libs/openblas/openblas-0.3.5.ebuild | 85 ++ 4 files changed, 243 insertions(+) diff --git a/sci-libs/openblas/Manifest b/sci-libs/openblas/Manifest new file mode 100644 index 000..8ebcf20cda7 --- /dev/null +++ b/sci-libs/openblas/Manifest @@ -0,0 +1 @@ +DIST openblas-0.3.5.tar.gz 11853101 BLAKE2B a9b249bc397fcb1d80401d1c60c6985803016e4fd0908649fe6386ae84a09a53569814b3af65fd8fbfa92f2cdd5d4af313ba91a80f7daa7e481a7941cbb9af2c SHA512 15520c3eca79b002f1afbee64257afa24705dec667a89bd46acfcdae426e29342816fb586db98ff256fcc9d0fd744b14b347fed23995958e7646a5e3e7310cf4 diff --git a/sci-libs/openblas/files/shared-blas-lapack.patch b/sci-libs/openblas/files/shared-blas-lapack.patch new file mode 100644 index 000..fc77427362c --- /dev/null +++ b/sci-libs/openblas/files/shared-blas-lapack.patch @@ -0,0 +1,137 @@ +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) \ ++