From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5F507158176 for ; Tue, 21 Oct 2025 18:50:37 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 4C3E0341EBF for ; Tue, 21 Oct 2025 18:50:37 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id AFA3011057A; Tue, 21 Oct 2025 18:50:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id A3FBA110578 for ; Tue, 21 Oct 2025 18:50:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5301F3415E2 for ; Tue, 21 Oct 2025 18:50:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5AD63B42 for ; Tue, 21 Oct 2025 18:50:20 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1761072453.f3d2407d852259f8f1e9b72ddad58959cffe8dbc.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocPRIM/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/rocPRIM/Manifest sci-libs/rocPRIM/metadata.xml sci-libs/rocPRIM/rocPRIM-7.0.2.ebuild X-VCS-Directories: sci-libs/rocPRIM/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f3d2407d852259f8f1e9b72ddad58959cffe8dbc X-VCS-Branch: master Date: Tue, 21 Oct 2025 18:50:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 54d39634-422e-4964-ad51-2eef1c73c30a X-Archives-Hash: 69548096492d3608c1490bd936dfcb78 commit: f3d2407d852259f8f1e9b72ddad58959cffe8dbc Author: Sv. Lockal gmail com> AuthorDate: Sun Oct 12 13:35:07 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Oct 21 18:47:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3d2407d sci-libs/rocPRIM: add 7.0.2 Bug: https://bugs.gentoo.org/964799 Signed-off-by: Sv. Lockal gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44165 Signed-off-by: Sam James gentoo.org> sci-libs/rocPRIM/Manifest | 1 + sci-libs/rocPRIM/metadata.xml | 2 +- sci-libs/rocPRIM/rocPRIM-7.0.2.ebuild | 77 +++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-) diff --git a/sci-libs/rocPRIM/Manifest b/sci-libs/rocPRIM/Manifest index ccf95bc449df..e5c7948493f6 100644 --- a/sci-libs/rocPRIM/Manifest +++ b/sci-libs/rocPRIM/Manifest @@ -1,2 +1,3 @@ DIST rocPRIM-6.3.3.tar.gz 745961 BLAKE2B 7ab15f623390de9052258717fa568b41c0f0dbe2e70c5c59089ad52bd00bdb44905a0f371dd71673af4b6f5d5ca21ab5bc6e41c04721e3b812f9543ad849c236 SHA512 5e216ff18d0a3eeb901f3ad4e8b74f9d8661a0bb943edea064529bdb973f3955e6791c415e492a89456eb0f19376f74528c3b348c4e32755a48e6b3f855a91e2 DIST rocPRIM-6.4.3.tar.gz 868355 BLAKE2B f9dea0b2089a54033c689593f156a2ec5fa57c9be1d97491ab888667d2f12e919dc191baf3b321cf9450c1c09032a771be286ec9662e3cd4a2e5b18ad64636eb SHA512 1190a5397d30ee659128038c6903188c29808ad8e7e09f9ef648384662bdb6eda331d7a4847b3e00d31eb3c6752977703cfba2516ce0f268b2b0a349c97e5b24 +DIST rocPRIM-7.0.2.tar.gz 917166 BLAKE2B 9437384b8e16b59f6633c71737d66cbc913332e153a92ca4c305e6619158b3a926794cdca71383aa84df20d5e2fa68d78d6decca61f78b24cda519687aa09408 SHA512 7c6b316ef1936726c883cd15b0a2e35b7df26f67c6ed4a04ba1eda761b5e01fc8f827f1361ba7737c677f727d883715663c9385af0d308a349f119873ae46f5e diff --git a/sci-libs/rocPRIM/metadata.xml b/sci-libs/rocPRIM/metadata.xml index b98edd6a4e2b..b4fc59a07807 100644 --- a/sci-libs/rocPRIM/metadata.xml +++ b/sci-libs/rocPRIM/metadata.xml @@ -14,7 +14,7 @@ Sv. Lockal - ROCm/rocPRIM + ROCm/rocm-libraries Build and install benchmark programs. diff --git a/sci-libs/rocPRIM/rocPRIM-7.0.2.ebuild b/sci-libs/rocPRIM/rocPRIM-7.0.2.ebuild new file mode 100644 index 000000000000..3c36739cf670 --- /dev/null +++ b/sci-libs/rocPRIM/rocPRIM-7.0.2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ROCM_VERSION=${PV} +inherit cmake flag-o-matic rocm + +DESCRIPTION="HIP parallel primitives for developing performant GPU-accelerated code on ROCm" +HOMEPAGE="https://github.com/ROCm/rocm-libraries/tree/develop/projects/rocprim" +SRC_URI="https://github.com/ROCm/rocPRIM/archive/rocm-${PV}.tar.gz -> rocPRIM-${PV}.tar.gz" +S="${WORKDIR}/rocPRIM-rocm-${PV}" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" +IUSE="benchmark test" +REQUIRED_USE=" + benchmark? ( ${ROCM_REQUIRED_USE} ) + test? ( ${ROCM_REQUIRED_USE} ) +" + +RDEPEND=" + benchmark? ( + dev-util/hip:${SLOT} + dev-cpp/benchmark:= + ) +" +DEPEND=" + ${RDEPEND} + dev-util/hip:${SLOT} + test? ( dev-cpp/gtest ) +" +BDEPEND=" + dev-build/rocm-cmake + dev-build/cmake +" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/${PN}-6.4.1-expand-isa-compatibility.patch +) + +src_prepare() { + # install benchmark files + if use benchmark; then + sed -e "/get_filename_component/s,\${BENCHMARK_SOURCE},${PN}_\${BENCHMARK_SOURCE}," \ + -e "/add_executable/a\ install(TARGETS \${BENCHMARK_TARGET})" -i benchmark/CMakeLists.txt || die + fi + + cmake_src_prepare +} + +src_configure() { + rocm_use_clang + + # too many warnings in tests + append-cxxflags -Wno-explicit-specialization-storage-class -Wno-deprecated-declarations + + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -DAMDGPU_TARGETS="$(get_amdgpu_flags)" + -DBUILD_TEST=$(usex test ON OFF) + -DBUILD_BENCHMARK=$(usex benchmark ON OFF) + -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF + -DROCM_SYMLINK_LIBS=OFF + ) + + cmake_src_configure +} + +src_test() { + check_amdgpu + # uses HMM to fit tests to default <512M iGPU VRAM + ROCPRIM_USE_HMM="1" cmake_src_test -j1 +}