From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/hip/
Date: Sun, 12 Oct 2025 13:08:48 +0000 (UTC) [thread overview]
Message-ID: <1760274497.839e47e3dea5ce3770238d175157dc4885e65010.asturm@gentoo> (raw)
commit: 839e47e3dea5ce3770238d175157dc4885e65010
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 11 07:50:20 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Oct 12 13:08:17 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=839e47e3
dev-util/hip: drop 5.7.1-r2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
dev-util/hip/Manifest | 3 -
dev-util/hip/hip-5.7.1-r2.ebuild | 182 ---------------------------------------
2 files changed, 185 deletions(-)
diff --git a/dev-util/hip/Manifest b/dev-util/hip/Manifest
index 16fe129a84d0..d14b6335a6b1 100644
--- a/dev-util/hip/Manifest
+++ b/dev-util/hip/Manifest
@@ -1,9 +1,6 @@
-DIST hip-5.7.1.tar.gz 553774 BLAKE2B f88c235f688d3a662ec6cb4ad7fe3f82c0015015997871609cc30ab5b2f7fcb9709a08683d77194e45a6dbbe1d24c6355b128d2ecf655f1dea3468711c64e0a3 SHA512 68fa8753725b53c999d102d254c6b1dba53af4e00d6a48db93d10213cc02eec30b4a39c66e773d4f625dd9636cf8b0c5faa05b69fac27cf5a6b19dd3ddd2b905
DIST hip-6.3.3.tar.gz 1486598 BLAKE2B 998b28786c0b156cd1c23a01ce284206d1ad5cad1f207676b9d40994dc4f60d16a1f0804cfa287622826d78871ee19d2b5aa78dc29a69fe54ab50f08652bfd26 SHA512 70544467c5c262fab1e9415f5e77d0ec3b4635b6fa104de5d7ab2da0e2ca88fe40ce716068e50eaa17a807516cd41e2c0af22bcada3a1f7de50aa88283850e38
DIST hip-6.4.3.tar.gz 1755257 BLAKE2B 3db2d35a71ca2802e95043c5ef6d50db56b3e1412dcdb08ba7083675cccb898d2b06c2afdfc0e0f53648d09d2aa84f91cca00ecf297caa2784d07aae4b3573b6 SHA512 1fa32ca7f9f2024e66cbe0bd8faaeeaf5240ce2f962f5bfa29815ff7bdcf5c4c4dac2d0d0354c3a5215df6ebec1e1b32bc10e560d9292a0bd019da1773724e54
DIST hip-test-6.3.3.tar.gz 1446849 BLAKE2B 474194bd7cef54af85eab0bc8fdfbe2360a9a22ab27f9014ebbb22f03952bfc014d682e2a0cbf90fcd365b4295df266a64419deebbce38aa7b5b7af9c979cc20 SHA512 65bde402804e95a09142bc2a9866bbef14068b63d09236d70086e15c3927ef29fb75d0859a90aa4bc75ebe03f94da85284b233fb41b95246bb45d1d8fee172ed
DIST hip-test-6.4.3.tar.gz 1570417 BLAKE2B 5b6bd3d1fcaaf724061ed686b6edc08b7ba308557ae0cb22785a04bc17b48aace50225a5e3c756a28bc741bb8fcaac8bff18b17f99a4458427b3489fef7dcd44 SHA512 5eed7da562f3807bb6ea8d737115dd45b775c2588c4131f2a19206d125b2b53d8adccbe189953219dd1091f18f08badec81cba524951b8a69626df9075db7a1c
-DIST rocm-5.7.0.tar.gz 845881 BLAKE2B 08255edc1407e5ef85895336b11496319695318fce265565728ad75175b5e1dfab98f696fee2d27e60c48e862f721fad4c53118cc70b807353fff5f97ed72ac2 SHA512 72420e16c7cfe9687e030331838666dabaa43d686bdad1d109431e44db99070a2cf6dd64b59e3275019abedd6612f6008c798a79275e7225b6b122fb9f644660
-DIST rocm-clr-5.7.1.tar.gz 2008647 BLAKE2B 3db0760d6f83504e60caf88a2dd5e0bc02c7db9d6f263ad0eb2cfc79aa0f88a3699c412844a0158a796d9d02e79660287e791edad787d814eefffea4fd2298b4 SHA512 d79323481d82fc02c12a32cdcc0d14437d512af023e7737db0387b7eecb27fe6e4ae7c71d6adce57932a04bb24c880440d9dc10aeb5af11a4f2ca64d44330965
DIST rocm-clr-6.3.3.tar.gz 2095704 BLAKE2B bdb315fc9f1f9c76aa2a345bd48a600c81f3b72eb68fee8862b5e155e7519bef6f6421698a43358c6fe0200bb0b6924ff819860d9a91a5c07fc3e9d44eeb1b16 SHA512 94d2959b981b324e0dae2d06e86c72cd01fa495de081666bcec2445c02bada22aa60e94ecac0ee63e70e52275f92caeefcb6dc96a3f0fba593896be7b0d8ab42
DIST rocm-clr-6.4.3.tar.gz 2126045 BLAKE2B eadeaa050e684373883faadfbf42d6b4152979154587afb1a2583bf9ddfb3ff9ab9787a433c8f380ac52012732ff2f68892ab256ec76f32557c164e9551745af SHA512 38daec86ea9c8e60f420b4eec5e96d88a4e51585dcbb7352bec27f0c712f4b856f413c42e2585c031a81e8046065d76763c624500ba786ae0e9133278f00418c
diff --git a/dev-util/hip/hip-5.7.1-r2.ebuild b/dev-util/hip/hip-5.7.1-r2.ebuild
deleted file mode 100644
index 6ce532c4c58a..000000000000
--- a/dev-util/hip/hip-5.7.1-r2.ebuild
+++ /dev/null
@@ -1,182 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DOCS_BUILDER="doxygen"
-DOCS_DEPEND="media-gfx/graphviz"
-ROCM_SKIP_GLOBALS=1
-
-inherit cmake docs flag-o-matic llvm rocm
-
-LLVM_MAX_SLOT=17
-
-TEST_PV=5.7.0 # No hip-test-5.7.1 release
-
-DESCRIPTION="C++ Heterogeneous-Compute Interface for Portability"
-HOMEPAGE="https://github.com/ROCm/hipamd"
-SRC_URI="https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz
- https://github.com/ROCm/HIP/archive/refs/tags/rocm-${PV}.tar.gz -> hip-${PV}.tar.gz
- test? ( https://github.com/ROCm/hip-tests/archive/refs/tags/rocm-${TEST_PV}.tar.gz )"
-
-KEYWORDS="~amd64"
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-
-RESTRICT="!test? ( test )"
-IUSE="debug test"
-
-DEPEND="
- =dev-util/rocminfo-5*
- llvm-core/clang:${LLVM_MAX_SLOT}
- dev-libs/rocm-comgr:${SLOT}
- >=dev-libs/rocr-runtime-5.6
- <dev-libs/rocr-runtime-6
- x11-base/xorg-proto
- virtual/opengl
-"
-BDEPEND="test? ( =dev-util/hipcc-5* )"
-RDEPEND="${DEPEND}
- =dev-util/hipcc-5*
- dev-perl/URI-Encode
- llvm-runtimes/clang-runtime:=
- >=dev-libs/roct-thunk-interface-5"
-
-PATCHES=(
- "${FILESDIR}/${PN}-5.7.0-install.patch"
- "${FILESDIR}/${PN}-5.7.1-fix-unaligned-access.patch"
- "${FILESDIR}/${PN}-5.7.1-exec-stack.patch"
- "${FILESDIR}/${PN}-5.7.1-disable-stack-protector.patch"
- "${FILESDIR}/${PN}-5.7.1-no_asan_doc.patch"
- "${FILESDIR}/${PN}-5.7.1-extend-isa-compatibility-check.patch"
- "${FILESDIR}/${PN}-5.7.1-fix-mmap-oom-check.patch"
-)
-
-S="${WORKDIR}/clr-rocm-${PV}/"
-TEST_S="${WORKDIR}/hip-tests-rocm-${TEST_PV}/catch"
-
-hip_test_wrapper() {
- local CMAKE_USE_DIR="${TEST_S}"
- local BUILD_DIR="${TEST_S}_build"
- cd "${TEST_S}" || die
- $@
-}
-
-src_prepare() {
- # Set HIP and HIP Clang paths directly, don't search using heuristics
- sed -e "s:# Search for HIP installation:set(HIP_ROOT_DIR \"${EPREFIX}/usr\"):" \
- -e "s:#Set HIP_CLANG_PATH:set(HIP_CLANG_PATH \"$(get_llvm_prefix -d ${LLVM_MAX_SLOT})/bin\"):" \
- -i "${WORKDIR}"/HIP-rocm-${PV}/cmake/FindHIP.cmake || die
-
- # https://github.com/ROCm/HIP/commit/405d029422ba8bb6be5a233d5eebedd2ad2e8bd3
- # https://github.com/ROCm/clr/commit/ab6d34ae773f4d151e04170c0f4e46c1135ddf3e
- # Migrated to hip-test, but somehow the change is not applied to the tarball.
- rm -rf "${WORKDIR}"/HIP-rocm-${PV}/tests || die
- sed -e '/tests.*cmake/d' -i hipamd/CMakeLists.txt || die
-
- cmake_src_prepare
-
- if use test; then
- local PATCHES=(
- "${FILESDIR}"/hip-test-5.7.0-rocm_agent_enumerator-location.patch \
- "${FILESDIR}"/hip-test-5.7.1-remove-incompatible-flag.patch
- )
- hip_test_wrapper cmake_src_prepare
- fi
-}
-
-src_configure() {
- # -Werror=strict-aliasing
- # https://bugs.gentoo.org/858383
- # https://github.com/ROCm/clr/issues/64
- #
- # Do not trust it for LTO either
- append-flags -fno-strict-aliasing
- filter-lto
-
- # Workaround for bug #923986
- append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
- use debug && CMAKE_BUILD_TYPE="Debug"
-
- local mycmakeargs=(
- -DCMAKE_PREFIX_PATH="$(get_llvm_prefix "${LLVM_MAX_SLOT}")"
- -DCMAKE_BUILD_TYPE=${buildtype}
- -DCMAKE_SKIP_RPATH=ON
- -DBUILD_HIPIFY_CLANG=OFF
- -DHIP_PLATFORM=amd
- -DHIP_COMMON_DIR="${WORKDIR}/HIP-rocm-${PV}"
- -DROCM_PATH="${EPREFIX}/usr"
- -DUSE_PROF_API=0
- -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF
- -DCLR_BUILD_HIP=ON
- -DHIPCC_BIN_DIR="${EPREFIX}/usr/bin"
- -DOpenGL_GL_PREFERENCE="GLVND"
- )
-
- cmake_src_configure
-
- if use test; then
- local mycmakeargs=(
- -DROCM_PATH="${BUILD_DIR}"/hipamd
- -DHIP_PLATFORM=amd
- -DCMAKE_MODULE_PATH="${TEST_S}/external/Catch2/cmake/Catch2"
- )
- hip_test_wrapper cmake_src_configure
- fi
-}
-
-src_compile() {
- cmake_src_compile
-
- if use test; then
- HIP_PATH="${BUILD_DIR}"/hipamd \
- hip_test_wrapper cmake_src_compile build_tests
- fi
-}
-
-src_test() {
- check_amdgpu
- export LD_LIBRARY_PATH="${BUILD_DIR}/hipamd/lib"
-
- # TODO: research how to test Vulkan-related features.
- local CMAKE_SKIP_TESTS=(
- Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Positive_Read_Write
- Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Negative_Parameters
- Unit_hipImportExternalMemory_Vulkan_Negative_Parameters
- Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore
- Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores
- Unit_hipWaitExternalSemaphoresAsync_Vulkan_Negative_Parameters
- Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore
- Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores
- Unit_hipSignalExternalSemaphoresAsync_Vulkan_Negative_Parameters
- Unit_hipImportExternalSemaphore_Vulkan_Negative_Parameters
- Unit_hipDestroyExternalSemaphore_Vulkan_Negative_Parameters
- )
-
- MAKEOPTS="-j1" hip_test_wrapper cmake_src_test
-}
-
-src_install() {
- cmake_src_install
-
- # add version file that is required by some libraries
- mkdir "${ED}"/usr/include/rocm-core || die
- cat <<EOF > "${ED}"/usr/include/rocm-core/rocm_version.h || die
-#pragma once
-#define ROCM_VERSION_MAJOR $(ver_cut 1)
-#define ROCM_VERSION_MINOR $(ver_cut 2)
-#define ROCM_VERSION_PATCH $(ver_cut 3)
-#define ROCM_BUILD_INFO "$(ver_cut 1-3).0-9999-unknown"
-EOF
- dosym -r /usr/include/rocm-core/rocm_version.h /usr/include/rocm_version.h
-
- rm "${ED}/usr/include/hip/hcc_detail" || die
-
- # files already installed by hipcc, which is a runtime dep
- rm "${ED}/usr/bin/hipconfig.pl" || die
- rm "${ED}/usr/bin/hipcc.pl" || die
- rm "${ED}/usr/bin/hipcc" || die
- rm "${ED}/usr/bin/hipconfig" || die
- rm "${ED}/usr/bin/hipvars.pm" || die
-}
next reply other threads:[~2025-10-12 13:08 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-12 13:08 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-11 18:14 [gentoo-commits] repo/gentoo:master commit in: dev-util/hip/ Andreas Sturmlechner
2025-09-06 15:13 Sam James
2025-06-11 15:05 Patrick Lauer
2025-02-13 8:38 Sam James
2025-02-08 10:07 Patrick Lauer
2024-12-01 7:57 Patrick Lauer
2024-07-28 8:04 Patrick Lauer
2024-06-26 9:21 Sam James
2024-06-26 9:21 Sam James
2024-03-12 2:25 Sam James
2024-03-08 19:22 Sam James
2024-03-08 19:22 Sam James
2024-03-08 19:22 Sam James
2024-01-06 7:21 Sam James
2024-01-06 7:21 Sam James
2023-12-23 10:43 罗百科
2023-12-14 15:02 Benda XU
2023-12-14 15:02 Benda XU
2023-11-19 11:30 罗百科
2023-10-30 9:22 罗百科
2023-10-27 8:14 Andrew Ammerlaan
2023-10-19 10:38 罗百科
2023-02-22 16:16 Sam James
2023-01-31 13:32 Benda XU
2023-01-31 13:32 Benda XU
2023-01-31 13:32 Benda XU
2023-01-31 13:32 Benda XU
2023-01-31 13:32 Benda XU
2023-01-31 13:32 Benda XU
2022-12-20 9:26 罗百科
2022-10-08 12:40 Arthur Zamarin
2022-09-12 8:41 Benda XU
2022-09-12 8:41 Benda XU
2022-06-22 13:03 Benda XU
2022-03-27 3:26 Benda XU
2022-03-27 3:18 Benda XU
2022-03-25 15:52 Benda XU
2022-03-05 20:51 Andrew Ammerlaan
2022-01-24 14:46 Benda XU
2021-08-03 7:04 Benda XU
2021-08-03 1:35 Benda XU
2021-01-20 5:36 Benda XU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1760274497.839e47e3dea5ce3770238d175157dc4885e65010.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox