commit:     671e116a37a00a930aa7a85aebe2f498bfb2a24a
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Mon Oct 13 16:54:10 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 21 18:47:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=671e116a

sci-libs/hipBLAS: add 7.0.2

Bug: https://bugs.gentoo.org/964799

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44165
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/hipBLAS/Manifest             |  1 +
 sci-libs/hipBLAS/hipBLAS-7.0.2.ebuild | 48 +++++++++++++++++++++++++++++++++++
 sci-libs/hipBLAS/metadata.xml         |  5 +++-
 3 files changed, 53 insertions(+), 1 deletion(-)

diff --git a/sci-libs/hipBLAS/Manifest b/sci-libs/hipBLAS/Manifest
index 96335a2382b5..ecefa709fefe 100644
--- a/sci-libs/hipBLAS/Manifest
+++ b/sci-libs/hipBLAS/Manifest
@@ -1,2 +1,3 @@
 DIST hipBLAS-6.3.3.tar.gz 993121 BLAKE2B 
7cfe71112a8083a0f5fd1f2629bde12a79b13f2d289dd82405978f7713fb30b132d002d01566b077650265e8ee6746b51e4e3defb92bd1416ec83ce7c490407c
 SHA512 
a14ba19557236ef8affa557d5139c6c380120a68eac5d6b7172b279380a52be4d451a3c2a7ee2a7e4d169c16081ea4639dc058b5231d2a33429fb0f065db5b18
 DIST hipBLAS-6.4.3.tar.gz 993780 BLAKE2B 
6c2e88a1d4d313a39abbaaf663b0d83aaf5dbf4f7e625d97189cd98302a544f4c7d617fcc1ec2a2918edaff08f34329be0b6657c1aba3fa35a26ac919c31b85c
 SHA512 
5ce1825624a267a1af25b1eafb6f3bd2bbbb9c9a6ce2d7788a2cf3213174e59d0b04599a89f4ba8b796cba1c8fc5cf5d2f9820fd948b735da781fe6d04c2826e
+DIST hipBLAS-7.0.2.tar.gz 830432 BLAKE2B 
f466009b09f0baf7eaf1cb1104c900d02dd99f737085a82c5b95b84ac1e300f61c12db14b53ac59f78847727010fc2a0cd364b285358283dd7365572f2173687
 SHA512 
841f35dc2782aa03aa8c19111f0b975ee23c7077e9590d267eb74146694c1cbca992d5825a1de7f00dc0e423181ea04631163392d4068058111d15394e069c43

diff --git a/sci-libs/hipBLAS/hipBLAS-7.0.2.ebuild 
b/sci-libs/hipBLAS/hipBLAS-7.0.2.ebuild
new file mode 100644
index 000000000000..cad86d6848db
--- /dev/null
+++ b/sci-libs/hipBLAS/hipBLAS-7.0.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ROCM_VERSION=${PV}
+
+inherit cmake rocm
+DESCRIPTION="ROCm BLAS marshalling library"
+HOMEPAGE="https://github.com/ROCm/rocm-libraries/tree/develop/projects/hipblas";
+SRC_URI="https://github.com/ROCm/hipBLAS/archive/rocm-${PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/hipBLAS-rocm-${PV}"
+
+REQUIRED_USE="${ROCM_REQUIRED_USE}"
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+IUSE="rocsolver"
+
+RDEPEND="
+       sci-libs/rocBLAS:${SLOT}
+       rocsolver? ( sci-libs/rocSOLVER:${SLOT} )
+"
+DEPEND="
+       dev-util/hip:${SLOT}
+       sci-libs/hipBLAS-common:${SLOT}
+       ${RDEPEND}
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-6.3.0-no-git.patch
+)
+
+src_configure() {
+       rocm_use_clang
+
+       local mycmakeargs=(
+               # currently hipBLAS is a wrapper of rocBLAS which has tests, so 
no need to perform test here
+               -DBUILD_CLIENTS_TESTS=OFF
+               -DBUILD_CLIENTS_BENCHMARKS=OFF
+               -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
+               -DROCM_SYMLINK_LIBS=OFF
+               -DBUILD_WITH_SOLVER=$(usex rocsolver ON OFF)
+       )
+
+       cmake_src_configure
+}

diff --git a/sci-libs/hipBLAS/metadata.xml b/sci-libs/hipBLAS/metadata.xml
index 128eeacea7f9..0f25a7cd9810 100644
--- a/sci-libs/hipBLAS/metadata.xml
+++ b/sci-libs/hipBLAS/metadata.xml
@@ -17,6 +17,9 @@
     <name>Sv. Lockal</name>
   </maintainer>
   <upstream>
-    <remote-id type="github">ROCm/hipBLAS</remote-id>
+    <remote-id type="github">ROCm/rocm-libraries</remote-id>
   </upstream>
+  <use>
+    <flag name="rocsolver">Add additional functions from 
<pkg>sci-libs/rocSOLVER</pkg></flag>
+  </use>
 </pkgmetadata>

Reply via email to