commit: 3009ecdd8fc4867456212e460851fcf641b00a4f
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 9 06:53:38 2025 +0000
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sun Nov 9 09:07:10 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3009ecdd
sci-libs/hipSPARSE: add 7.1.0
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
sci-libs/hipSPARSE/Manifest | 1 +
sci-libs/hipSPARSE/hipSPARSE-7.1.0.ebuild | 99 +++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
diff --git a/sci-libs/hipSPARSE/Manifest b/sci-libs/hipSPARSE/Manifest
index 98ee519de299..984055ed3c16 100644
--- a/sci-libs/hipSPARSE/Manifest
+++ b/sci-libs/hipSPARSE/Manifest
@@ -1,6 +1,7 @@
DIST hipSPARSE-6.3.3.tar.gz 537761 BLAKE2B
3f4bac3b35ecaf033dbbee9f802a28f8f3cbd0155443d198ae450f22034293c48cebf60745e297b83a44ce0bdedeba44a643650af4980e4823c64edd344ac084
SHA512
aaf8d31d5102ed02fc861a90e9e6ccca22a7242559d8c775735f5d893c423bbbcf1c72ed96eade1c630aefd6154de64de8fe60cff54b9837c4ef249cbf4db06e
DIST hipSPARSE-6.4.3.tar.gz 560457 BLAKE2B
44b0621d38da804245593506eb17bb755d52da19273b4e9028d425e1ca45c9e4aafd14d46c599e4375522071496eabd283fb2e390efb642d25c1e0dc09600695
SHA512
815e5fc288937e69171df12ea392dca12df5b30c246bc3d467904745219293344e4b93af2a87c20ae1068ac207f901d92f5407b73a143fd4b1a4ac834a4edd39
DIST hipSPARSE-7.0.2.tar.gz 614481 BLAKE2B
cb4f55da6005caefeaed1d00161b70754869a20133eca4602adf8a39dfa245327d1a108fdf08c4a55dba803eb0b25a0d6b71f6a4063e26cb77137af4cf471bde
SHA512
6482525fdd844d2622aa9fe72dd6483eff74c63400f0ffae8e7c85ff98e886b57e6cf2eb29718414ea56e410203dfde2ca5d8ab82eb21d5122c7dec1bbdbc560
+DIST hipSPARSE-7.1.0.tar.gz 616600 BLAKE2B
08cfa1f0100a07f30fa960dd097e4467ae34d122f87494503f7ac859f12dab9e2cd13c49b2ce9354c38c599073460160769814698e370b8403cbcf536a4d9632
SHA512
c7b7fd8d07ff7c600b66a58b2b9f2cc9a9308072eab6699e209c24bf2405bc54e5d87a51649766c9b5ed8c5f940352ba26679334a40eaf2ec195544241f0aaf0
DIST rocSPARSE_ASIC_320k.tar.gz 11301444 BLAKE2B
a00cc4a3ededab3fb56339319e34e936645ddce2dee3c630153b37e337384c207b0a2829227fb7f4c2db1fe33383e97410ab7ad459d391c025f5410843d51cf2
SHA512
1db3af391c30a371c1ac0087436e266721474273a39d5b2b6d56408d950dcbbee004750e4dce4e3dbc4cb512f38f6d945676d7f29b62c52fd5a7fed0fe789e03
DIST rocSPARSE_Chebyshev4.tar.gz 50165660 BLAKE2B
f1a95554c8f38937f501488fabfd406b773eb980d7463cadac0de162529ac2f834c655cadd2b65f4c42a8487bc2d67c749601ae33bd789051f9e4d1e157196a0
SHA512
fdec4947a4af923d28b4be8d23690fd6d356c58f8344a5dcdd2e3fa61769d83e47a84d65316b527e6e82d9f988de2675a852367d406e44b44d784137a90b95c0
DIST rocSPARSE_amazon0312.tar.gz 11303646 BLAKE2B
388947a29380253bb5eecb22d3a3b6f3378711044b3fe98d6d2517cd27330f11b3d12fdb96320a2889e139224f1a6a5ad1c455ff8e91a262aa2aadbe16301330
SHA512
aed2d62581763742d9c7faf3dcaf1eaa983caa1e2e7ad4abebe97c5e7c2aec9942e0e32291092b348b60052c92b130e721ec19ed59bda22e1b233ef72ac7d2ff
diff --git a/sci-libs/hipSPARSE/hipSPARSE-7.1.0.ebuild
b/sci-libs/hipSPARSE/hipSPARSE-7.1.0.ebuild
new file mode 100644
index 000000000000..6f60285d0a59
--- /dev/null
+++ b/sci-libs/hipSPARSE/hipSPARSE-7.1.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ROCM_VERSION=${PV}
+
+inherit cmake edo rocm toolchain-funcs
+
+DESCRIPTION="ROCm SPARSE marshalling library"
+HOMEPAGE="https://github.com/ROCm/rocm-libraries/tree/develop/projects/hipsparse"
+# share some test datasets with rocSPARSE
+SRC_URI="https://github.com/ROCm/hipSPARSE/archive/rocm-${PV}.tar.gz ->
hipSPARSE-${PV}.tar.gz
+test? (
+http://sparse-files.engr.tamu.edu/MM/SNAP/amazon0312.tar.gz ->
rocSPARSE_amazon0312.tar.gz
+http://sparse-files.engr.tamu.edu/MM/Muite/Chebyshev4.tar.gz ->
rocSPARSE_Chebyshev4.tar.gz
+http://sparse-files.engr.tamu.edu/MM/FEMLAB/sme3Dc.tar.gz ->
rocSPARSE_sme3Dc.tar.gz
+http://sparse-files.engr.tamu.edu/MM/Williams/webbase-1M.tar.gz ->
rocSPARSE_webbase-1M.tar.gz
+http://sparse-files.engr.tamu.edu/MM/Bova/rma10.tar.gz ->
rocSPARSE_rma10.tar.gz
+http://sparse-files.engr.tamu.edu/MM/JGD_BIBD/bibd_22_8.tar.gz ->
rocSPARSE_bibd_22_8.tar.gz
+http://sparse-files.engr.tamu.edu/MM/Williams/mac_econ_fwd500.tar.gz ->
rocSPARSE_mac_econ_fwd500.tar.gz
+http://sparse-files.engr.tamu.edu/MM/Williams/mc2depi.tar.gz ->
rocSPARSE_mc2depi.tar.gz
+http://sparse-files.engr.tamu.edu/MM/Hamm/scircuit.tar.gz ->
rocSPARSE_scircuit.tar.gz
+http://sparse-files.engr.tamu.edu/MM/Sandia/ASIC_320k.tar.gz ->
rocSPARSE_ASIC_320k.tar.gz
+http://sparse-files.engr.tamu.edu/MM/GHS_psdef/bmwcra_1.tar.gz ->
rocSPARSE_bmwcra_1.tar.gz
+http://sparse-files.engr.tamu.edu/MM/HB/nos1.tar.gz -> rocSPARSE_nos1.tar.gz
+http://sparse-files.engr.tamu.edu/MM/HB/nos2.tar.gz -> rocSPARSE_nos2.tar.gz
+http://sparse-files.engr.tamu.edu/MM/HB/nos3.tar.gz -> rocSPARSE_nos3.tar.gz
+http://sparse-files.engr.tamu.edu/MM/HB/nos4.tar.gz -> rocSPARSE_nos4.tar.gz
+http://sparse-files.engr.tamu.edu/MM/HB/nos5.tar.gz -> rocSPARSE_nos5.tar.gz
+http://sparse-files.engr.tamu.edu/MM/HB/nos6.tar.gz -> rocSPARSE_nos6.tar.gz
+http://sparse-files.engr.tamu.edu/MM/HB/nos7.tar.gz -> rocSPARSE_nos7.tar.gz
+http://sparse-files.engr.tamu.edu/MM/DNVS/shipsec1.tar.gz ->
rocSPARSE_shipsec1.tar.gz
+)"
+S="${WORKDIR}/hipSPARSE-rocm-${PV}"
+
+LICENSE="MIT"
+SLOT="0"/$(ver_cut 1-2)
+KEYWORDS="~amd64"
+IUSE="benchmark test"
+REQUIRED_USE="${ROCM_REQUIRED_USE}"
+
+# It seems that the tests heavily abuse out-of-bounds array access, causing
failures with hardened libc++
+RESTRICT="test"
+
+RDEPEND="
+ dev-util/rocminfo:${SLOT}
+ dev-util/hip:${SLOT}
+ sci-libs/rocSPARSE:${SLOT}
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-build/rocm-cmake
+ test? ( dev-cpp/gtest )
+"
+
+src_prepare() {
+ # too many warnings from -Wall (applied after user CXXFLAGS)
+ sed -e "s/-Wall/-Wall -Wno-unused-value/g" \
+ -i clients/benchmarks/CMakeLists.txt \
+ -i library/CMakeLists.txt \
+ -i clients/tests/CMakeLists.txt || die
+
+ cmake_src_prepare
+
+ if use test; then
+ mkdir -p "${BUILD_DIR}"/clients/matrices
+ # compile and use the mtx2bin converter. Do not use any
optimization flags!
+ edo $(tc-getCXX) deps/convert.cpp -o deps/convert
+ find "${WORKDIR}" -maxdepth 2 -regextype egrep -regex
".*/(.*)/\1\.mtx" -print0 |
+ while IFS= read -r -d '' mtxfile; do
+
destination=${BUILD_DIR}/clients/matrices/$(basename -s '.mtx' "${mtxfile}").bin
+ ebegin "Converting ${mtxfile} to ${destination}"
+ deps/convert "${mtxfile}" "${destination}"
+ eend $?
+ done
+ fi
+}
+
+src_configure() {
+ rocm_use_clang
+
+ local mycmakeargs=(
+ -DHIP_RUNTIME="ROCclr"
+ -DBUILD_CLIENTS_TESTS=$(usex test ON OFF)
+ -DBUILD_CLIENTS_SAMPLES=OFF
+ -DBUILD_CLIENTS_BENCHMARKS=$(usex benchmark ON OFF)
+ -DROCM_SYMLINK_LIBS=OFF
+ -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ check_amdgpu
+ cd "${BUILD_DIR}"/clients/staging || die
+ edob ./hipsparse-test
+}