commit:     ba2777940bfbc49f654fabeb7dddbeaed06c2d5f
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Mon Feb 16 05:42:29 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar  6 00:44:09 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba277794

sci-libs/rocThrust: add 7.2.0

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

 sci-libs/rocThrust/Manifest               |  1 +
 sci-libs/rocThrust/rocThrust-7.2.0.ebuild | 80 +++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/sci-libs/rocThrust/Manifest b/sci-libs/rocThrust/Manifest
index aece86a1c032..87206838140f 100644
--- a/sci-libs/rocThrust/Manifest
+++ b/sci-libs/rocThrust/Manifest
@@ -2,4 +2,5 @@ DIST rocThrust-6.3.3.tar.gz 1205828 BLAKE2B 
4b65353de456558fbc4ad43630353d89336d
 DIST rocThrust-6.4.3.tar.gz 1228363 BLAKE2B 
de9160cc29608094c44e3c36c5ae4fba286c65b1ccd3f28ee7db9a982c02019e16ced1385e449b776662ae10c6b97293f8f7b56292ad8f45e745f35e5e2f816e
 SHA512 
77995e4e61f059a767b2df891e037513c43204b2d09181286ecc3579ac825a555c29bd3db41f185e48572a913b6b6a7c0ac5d16133498efa0eb76115fa1d6fea
 DIST rocThrust-7.0.2.tar.gz 1184612 BLAKE2B 
9df9ece9b9e46f61d880841989a5cfc91b8a269970e7c3d6b40c6c3be050009181574c9bafb2d718c1ccbf5e7dd7781b0c85475ad7e99276a3d2884004f22ea8
 SHA512 
b1274f7e1cb5818e18aa3992de68060d0740ed65dada14b6dd5a9e00d0c669819e6c30e9cc72a663d7e03d9a1376ac39fa1ec87c8e99711068270818d7a07e3d
 DIST rocThrust-7.1.0.tar.gz 1238877 BLAKE2B 
3332fdfb49db87e801b0ef076c6a292503e331d0fc2886aba04bb8b75bc9c5c82639d3fe9498922eaa45e1b276963b938222e8fcae2e762624bb212209b579a2
 SHA512 
8126c3214cbdd0f3b095cc5419d25e7f86e908c6ba5cf3b2df01cf1f3f4fb8fa483975a73334f9a2052feb6770ac53df1f174594c659ac68db0777a067f84208
+DIST rocthrust-7.2.0.tar.gz 1274401 BLAKE2B 
1c8dc25066f05c948916ff63ac9f0e6009a6cb51f7b2bad7287392c8266c38abc167475f72e72541baeea8e13bf6d3b831066e320b30a00a93e2854a0ff6b0a4
 SHA512 
1f6d136cd26cf97518236adb8d53a7525d5f376673ed2849997d2ec7bc4459373062bf337928629942db2d5cc53d9c6c41bc21486ca94dabe598e9e51c22b666
 DIST sqlite-amalgamation-3430200.zip 2676699 BLAKE2B 
b09c59772c920ddef7ba0b15b1721645541678bad9ecb23fb8ecfbb1733177cad836d1d75db8e0722ea7ab4701cfaca187b72c127e9959f7e4f116f1ec7fe41c
 SHA512 
5ef0e65ee92a088187376fa82ccb182dffa35391dd4dbcb3fafeb0a6f1602ced1e212753837079a9cad007d73d3f5b8a67ca1a6596eba6cf0c695052fa307392

diff --git a/sci-libs/rocThrust/rocThrust-7.2.0.ebuild 
b/sci-libs/rocThrust/rocThrust-7.2.0.ebuild
new file mode 100644
index 000000000000..4a7b92839ab4
--- /dev/null
+++ b/sci-libs/rocThrust/rocThrust-7.2.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ROCM_VERSION=${PV}
+
+inherit cmake rocm
+
+DESCRIPTION="HIP back-end for the parallel algorithm library Thrust"
+HOMEPAGE="https://github.com/ROCm/rocm-libraries/tree/develop/projects/rocthrust";
+SRC_URI="
+       
https://github.com/ROCm/rocm-libraries/releases/download/rocm-${PV}/rocthrust.tar.gz
 -> rocthrust-${PV}.tar.gz
+       test? ( https://www.sqlite.org/2023/sqlite-amalgamation-3430200.zip )
+"
+S="${WORKDIR}/rocthrust"
+
+LICENSE="Apache-2.0"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+IUSE="benchmark test"
+REQUIRED_USE="
+       benchmark? ( ${ROCM_REQUIRED_USE} )
+       test? ( ${ROCM_REQUIRED_USE} )
+"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-util/hip:${SLOT}
+       sci-libs/rocPRIM:${SLOT}
+       test? ( dev-cpp/gtest )
+       benchmark? (
+               dev-cpp/benchmark:=
+               sci-libs/rocRAND:${SLOT}
+       )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       >=dev-build/cmake-3.22
+       test? ( app-arch/unzip )
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-6.4.1-fix-libcxx.patch"
+       "${FILESDIR}/${PN}-6.4.1-no-tests-install.patch"
+)
+
+src_prepare() {
+       sed -e "s:set(ROCM_INSTALL_LIBDIR lib):set(ROCM_INSTALL_LIBDIR 
$(get_libdir)):" \
+               -i cmake/ROCMExportTargetsHeaderOnly.cmake || die
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       rocm_use_clang
+
+       local mycmakeargs=(
+               -DCMAKE_SKIP_RPATH=ON
+               -DAMDGPU_TARGETS="$(get_amdgpu_flags)"
+               -DBUILD_TEST=$(usex test ON OFF)
+               -DBUILD_BENCHMARK=$(usex benchmark ON OFF)
+               -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+               -Wno-dev
+       )
+
+       if use test; then
+               mycmakeargs+=(
+                       
-DFETCHCONTENT_SOURCE_DIR_SQLITE_LOCAL="${WORKDIR}"/sqlite-amalgamation-3430200
+               )
+       fi
+
+       cmake_src_configure
+}
+
+src_test() {
+       check_amdgpu
+       # uses HMM to fit tests to default <512M iGPU VRAM
+       ROCTHRUST_USE_HMM="1" cmake_src_test -j1
+}

Reply via email to