commit: 99c95e9f04bda70c661b2af31fd1bad7d7fd8984 Author: Sv. Lockal <lockalsash <AT> gmail <DOT> com> AuthorDate: Mon Oct 13 12:10:33 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Oct 21 18:47:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99c95e9f
sci-libs/rocThrust: 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/rocThrust/Manifest | 1 + sci-libs/rocThrust/metadata.xml | 4 +- sci-libs/rocThrust/rocThrust-7.0.2.ebuild | 81 +++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 2 deletions(-) diff --git a/sci-libs/rocThrust/Manifest b/sci-libs/rocThrust/Manifest index 6e2be9f370f2..688dfdf2a369 100644 --- a/sci-libs/rocThrust/Manifest +++ b/sci-libs/rocThrust/Manifest @@ -1,3 +1,4 @@ DIST rocThrust-6.3.3.tar.gz 1205828 BLAKE2B 4b65353de456558fbc4ad43630353d89336d23a4a9da00df21c34caedbcc25b9b05e0a3e4048f3709a63eb9a8882d60a906b2e7cf4976fd3953b089e9bcb04b7 SHA512 964ef583485d4885b4cf6e95a0cb65d54f1690ab4af9c18a9909d9356e19d3b431f510801ac0a26cd31b8539857840fc218e0bdf779e9a4ab7b03bb0e31f73da 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 sqlite-amalgamation-3430200.zip 2676699 BLAKE2B b09c59772c920ddef7ba0b15b1721645541678bad9ecb23fb8ecfbb1733177cad836d1d75db8e0722ea7ab4701cfaca187b72c127e9959f7e4f116f1ec7fe41c SHA512 5ef0e65ee92a088187376fa82ccb182dffa35391dd4dbcb3fafeb0a6f1602ced1e212753837079a9cad007d73d3f5b8a67ca1a6596eba6cf0c695052fa307392 diff --git a/sci-libs/rocThrust/metadata.xml b/sci-libs/rocThrust/metadata.xml index 03efe0482dfe..9b7f510b6c2c 100644 --- a/sci-libs/rocThrust/metadata.xml +++ b/sci-libs/rocThrust/metadata.xml @@ -13,9 +13,9 @@ <name>Sv. Lockal</name> </maintainer> <upstream> - <remote-id type="github">ROCm/rocThrust</remote-id> + <remote-id type="github">ROCm/rocm-libraries</remote-id> </upstream> <use> <flag name="benchmark">Build and install benchmark binary.</flag> </use> -</pkgmetadata> \ No newline at end of file +</pkgmetadata> diff --git a/sci-libs/rocThrust/rocThrust-7.0.2.ebuild b/sci-libs/rocThrust/rocThrust-7.0.2.ebuild new file mode 100644 index 000000000000..44183fa47a43 --- /dev/null +++ b/sci-libs/rocThrust/rocThrust-7.0.2.ebuild @@ -0,0 +1,81 @@ +# 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="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/rocThrust/archive/rocm-${PV}.tar.gz -> rocThrust-${PV}.tar.gz + test? ( https://www.sqlite.org/2023/sqlite-amalgamation-3430200.zip ) +" +S="${WORKDIR}/rocThrust-rocm-${PV}" + +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_hipcc + + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -DAMDGPU_TARGETS="$(get_amdgpu_flags)" + -DBUILD_TEST=$(usex test ON OFF) + -DBUILD_BENCHMARKS=$(usex benchmark ON OFF) + -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=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 +}
