summaryrefslogtreecommitdiff
path: root/sci-libs/scalapack
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-07-06 08:06:16 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-07-06 08:06:16 +0100
commit4187bba080530c5ca1c7dae9c233e88f3fc8f535 (patch)
treeb6f535e053876097ced1b6bda14a4da890c730d4 /sci-libs/scalapack
parent2a8d2f71d1d9963368e0ef3d641d75979a689d12 (diff)
gentoo auto-resync : 06:07:2024 - 08:06:15
Diffstat (limited to 'sci-libs/scalapack')
-rw-r--r--sci-libs/scalapack/Manifest2
-rw-r--r--sci-libs/scalapack/scalapack-2.2.0_p20240704.ebuild83
2 files changed, 85 insertions, 0 deletions
diff --git a/sci-libs/scalapack/Manifest b/sci-libs/scalapack/Manifest
index fdecc1d36f3f..d537d7c34abe 100644
--- a/sci-libs/scalapack/Manifest
+++ b/sci-libs/scalapack/Manifest
@@ -1,4 +1,6 @@
DIST scalapack-2.1.0-gcc10.patch 231026 BLAKE2B dacecca8307cd2bf7a20e6453fb17bc1f5a3f2926b6d8f3b89f7f8d34993368574804f0427f228de4525f2b2d73105de561588ba5a4d2fb609d5ed035f51ddc9 SHA512 a11057599639c167e907f8e4d45204174fd326e2ffb9e2d05533db23d8e2dd8cfc1d37f06d5502baa3d5714092fbf4638cf4d9fea84ca9d4fb150e21cc57861e
DIST scalapack-2.1.0.tgz 5307441 BLAKE2B 4aea055fc3e437bce7108d1555e93c50109bcfe84354903fd711509eedbe686349fda4030e2fa70faf1a9e7e3255e46e48c32b96a2916af6812b8aebceb750c2 SHA512 0e77fb535ebcc28e2d97499ef4bd5161f76ca0ba4a3e308c26ce5071cfc4be4f3814262f3fb38f378ce0b5b31c0913432fea00a1e9e3f7717b853d1182bdf5b4
+DIST scalapack-2.2.0_p20240704.tar.gz 4776451 BLAKE2B 927f6af5196c350cb48bdc0e2a6af40e8212045150b976367852926decabafa13dd5a9b680ad4aa1fce051b5fe3987ee9c034042ffdbba7fde4175847313f96b SHA512 ddd37cd4291f00fbdd9c27d23849238d2f32807b0fba86301cb73a6463f1b4feaf97a5c492ab6ac1c01139f0d1d7d06af898ec90366e5812b6524538812a53ea
EBUILD scalapack-2.1.0-r1.ebuild 2022 BLAKE2B e9652e19ae412a257fcaaa0bc65455e798f3de89e151765555fd5f6591af068f133b52e5960ff5592c781ebffe5cf9bfb834d69aac3e5a9a09437f26eb1eb1fc SHA512 be296f5dbf49adff1eb1e0e09b9b2c5a6acbc80df598a4f0f2adea658ecbb1e05e9ecc0bbd1d7f6ffe06b371c852884d503b3f921b8a4e6df70d3d33b1f2eaba
+EBUILD scalapack-2.2.0_p20240704.ebuild 2030 BLAKE2B ee4372788a1c9764c8013097223c18ed1278ca3b54b6a0e2767c7dd8edada6fdc44caaccc1ba98ce3a446378f618bb4ac6b74abc56c55577d99353ec8992c510 SHA512 cd8b22eb85a72ee9d7cd3776985d7a7fd84b89819b120aac3be565c9a8faa3b10229de8df1954340c9d24f2bed83980c70a87359459d1de86db3fdff8ad9ef0d
MISC metadata.xml 663 BLAKE2B 1ee0fc27d42f7a31f6cd38f7c4af6ac8a9010c40c2460409bb2e8885fb29c8c4345da17465a7b730d819712ed0b5324798de8b1e0ac6731928ba1f20ec78778f SHA512 bc348c99f67c4bec37415a716093d1dbdc429e1923b8850af8c4c23c801377296cac49764bae89fb8d3b5e403b37d995f06f127573cb9681e7caf4a20655c051
diff --git a/sci-libs/scalapack/scalapack-2.2.0_p20240704.ebuild b/sci-libs/scalapack/scalapack-2.2.0_p20240704.ebuild
new file mode 100644
index 000000000000..ce98c63fc31a
--- /dev/null
+++ b/sci-libs/scalapack/scalapack-2.2.0_p20240704.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic fortran-2 toolchain-funcs
+
+# 2024/07/04 master branch containing 45 commits on top of 2.2.0
+COMMIT_HASH="0234af94c6578c53ac4c19f2925eb6e5c4ad6f0f"
+
+DESCRIPTION="Subset of LAPACK routines redesigned for heterogenous (MPI) computing"
+HOMEPAGE="https://www.netlib.org/scalapack/"
+SRC_URI="https://github.com/Reference-ScaLAPACK/${PN}//archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT_HASH}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND="
+ virtual/lapack
+ virtual/mpi[fortran]
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( )
+
+src_prepare() {
+ cmake_src_prepare
+
+ if use static-libs; then
+ mkdir "${WORKDIR}/${PN}_static" || die
+ fi
+ # mpi does not have a pc file
+ sed -i -e 's/mpi//' scalapack.pc.in || die
+}
+
+src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/862924
+ # https://github.com/Reference-ScaLAPACK/scalapack/issues/95
+ #
+ # Do not trust it for LTO either.
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ scalapack_configure() {
+ local mycmakeargs=(
+ -DUSE_OPTIMIZED_LAPACK_BLAS=ON
+ -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)"
+ -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)"
+ -DBUILD_TESTING=$(usex test)
+ $@
+ )
+ cmake_src_configure
+ }
+
+ scalapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
+ use static-libs && \
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" scalapack_configure \
+ -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
+}
+
+src_compile() {
+ cmake_src_compile
+ use static-libs && \
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake_src_compile
+}
+
+src_install() {
+ cmake_src_install
+ use static-libs && \
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake_src_install
+
+ insinto /usr/include/blacs
+ doins BLACS/SRC/*.h
+
+ insinto /usr/include/scalapack
+ doins PBLAS/SRC/*.h
+}