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 AE33D15827B for ; Sun, 10 Aug 2025 06:07:29 +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 967A5342123 for ; Sun, 10 Aug 2025 06:07:29 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C1386110564; Sun, 10 Aug 2025 06:07:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 B44E5110564 for ; Sun, 10 Aug 2025 06:07:16 +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 67B3E34209B for ; Sun, 10 Aug 2025 06:07:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B546E32DE for ; Sun, 10 Aug 2025 06:07:13 +0000 (UTC) From: "Patrick Lauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick Lauer" Message-ID: <1754806027.e122652c45c4189cd9e70cc09b215bae9b416cfc.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/hipCUB/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/hipCUB/Manifest sci-libs/hipCUB/hipCUB-6.4.3.ebuild X-VCS-Directories: sci-libs/hipCUB/ X-VCS-Committer: patrick X-VCS-Committer-Name: Patrick Lauer X-VCS-Revision: e122652c45c4189cd9e70cc09b215bae9b416cfc X-VCS-Branch: master Date: Sun, 10 Aug 2025 06:07:13 +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: 19234114-b026-448d-954a-6fbde5c414ae X-Archives-Hash: 6891f1f653047c86eef436241ff17a3a commit: e122652c45c4189cd9e70cc09b215bae9b416cfc Author: Patrick Lauer gentoo org> AuthorDate: Sun Aug 10 06:00:30 2025 +0000 Commit: Patrick Lauer gentoo org> CommitDate: Sun Aug 10 06:07:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e122652c sci-libs/hipCUB: add 6.4.3 Signed-off-by: Patrick Lauer gentoo.org> sci-libs/hipCUB/Manifest | 1 + sci-libs/hipCUB/hipCUB-6.4.3.ebuild | 62 +++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/sci-libs/hipCUB/Manifest b/sci-libs/hipCUB/Manifest index 49cc0060ff7c..6c8dae2aacb2 100644 --- a/sci-libs/hipCUB/Manifest +++ b/sci-libs/hipCUB/Manifest @@ -3,3 +3,4 @@ DIST hipCUB-6.1.1.tar.gz 343181 BLAKE2B 3943278597c5e9d41c225ad86c3cdcc113f35cf1 DIST hipCUB-6.3.2.tar.gz 387546 BLAKE2B b0d4d487fc1f799e10cd684255fe4bb31ed7329d0ea628c818df560d506aa2b4e5bdb08b007aab9ee95492a3fecf6f559c5c9724df15fe7da86d9aed84951c6b SHA512 735610735e4584ded05b30d99ae9042d3ccd4590689fc2c415eb45fb2fd0d7ab431704709bdd066341ec10284ca0f4c1ad108c188f95949ce962b6a75eb57e19 DIST hipCUB-6.3.3.tar.gz 387580 BLAKE2B e0b605835be2b685c1cfa099a807e30fa061af8b14bafa1167c8249383230761a0d08532c831d3cb015e8e1b58119899d3cb7330990ca046045ea40058ee03e5 SHA512 2ec96088d34edeff48f8ee103a619f2ca7c741dcb020a3d1833a00e2072510790a563e98662aef7aa2a348034f3c8169ee39dcc61ab95202c734901ba53dfa4b DIST hipCUB-6.4.1.tar.gz 420053 BLAKE2B c5fde544499b8ebb16ed4a1c51621255120e1d672a9ddab3eab5019f759fc5345b2e2f363486c6956bd57a502215afa45208d849e2c4424366d28cdfac6548dd SHA512 2cbbf74e060dde3b6e354f38611079407c0cb6d9954af5402be7ee8b77667f7ccb08be676f9f50b5ce1a480e77da6302d852e8c4af8885ee924d79da39179c47 +DIST hipCUB-6.4.3.tar.gz 419173 BLAKE2B 7e1e707210191eee00aab01f8768a272f1fb5c35bb9e0635fe32ad50f4a8b56634d5f097f5eb2d1d5625f30f62450368a25a95ac2ba8fe85da2effd8efd669c9 SHA512 fb8018cf6200a468601149b6508b50944a27c3f7562012fef39e3a0ca13ed5ff597b1a3ad9e02273b70020ebd19ed10322e46d324f09fcf32a4f363e0ba72036 diff --git a/sci-libs/hipCUB/hipCUB-6.4.3.ebuild b/sci-libs/hipCUB/hipCUB-6.4.3.ebuild new file mode 100644 index 000000000000..92d497cbda10 --- /dev/null +++ b/sci-libs/hipCUB/hipCUB-6.4.3.ebuild @@ -0,0 +1,62 @@ +# 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="Wrapper of rocPRIM or CUB for GPU parallel primitives" +HOMEPAGE="https://github.com/ROCm/hipCUB" +SRC_URI="https://github.com/ROCm/hipCUB/archive/rocm-${PV}.tar.gz -> hipCUB-${PV}.tar.gz" +S="${WORKDIR}/hipCUB-rocm-${PV}" + +LICENSE="BSD" +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} + benchmark? ( dev-cpp/benchmark ) + test? ( dev-cpp/gtest ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${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=( + -DGPU_TARGETS="$(get_amdgpu_flags)" + -DBUILD_TEST=$(usex test ON OFF) + -DBUILD_BENCHMARK=$(usex benchmark ON OFF) + -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF + ) + + cmake_src_configure +} + +src_test() { + check_amdgpu + # Expected time on gfx1100 (-j32) is 85s + # HipcubDeviceHistogramMultiEven/0.MultiEven in 6.4.1 has bad array access (probably fixed in the future release) + local CMAKE_SKIP_TESTS=(hipcub.DeviceHistogram) + cmake_src_test +}