diff --git a/dev-libs/rocr-runtime/Manifest b/dev-libs/rocr-runtime/Manifest index f8dc0910ab3be..f8c956d285008 100644 --- a/dev-libs/rocr-runtime/Manifest +++ b/dev-libs/rocr-runtime/Manifest @@ -1,2 +1,3 @@ DIST rocr-runtime-6.3.3.tar.gz 2260073 BLAKE2B bca4a1809a90a4009b7f1f6e97764ab2f6d235b1c8d16d0417309c6484b2449ff807d248fe05e97867a10e660a86345c442a055081faefa17bbdf6a55b981867 SHA512 5b59d817f0fe5c87cb6eb639c8d1b8e5814b7b236eb961c9b7e2ade81163710b4cebb63f45cdf508a9ae6eb5dc380a63c09b9aa44cb082fe2b85c727efed8061 DIST rocr-runtime-6.4.3.tar.gz 2292387 BLAKE2B 4299e49cf0ead06d1736fe7f5f39b499749f38b7432d0ab1d870310bf087463636696651b12291be14fb56b28099da605887dcb4662e02dfa81bd0801a9d3aa2 SHA512 424af4015d7fe50c97ec27314bfbb21a768617afc29a7ce2fb61edb1fc3933e9451e285ce94a6177c33aed26f7e8c223343c0ec3936e0fe918a85361e6873ba2 +DIST rocr-runtime-7.0.2.tar.gz 2261260 BLAKE2B 767a05ef9409919a8b3d519ae734906ad64eafdaa626d8cf36ac98a7ca048fa332465dde989331fd07cf70ff1f1404e877ad4b9f14e2382e8f8ee11c2f3b35da SHA512 536b85c1dcfa2748b5231221c7c58e32165abd075cd09be2de40d3721b43b9b7bce2b52ab26407cad21e1a7ef8fb55f6f4cfad94a9b87cf0301fd2d4867574fd diff --git a/dev-libs/rocr-runtime/metadata.xml b/dev-libs/rocr-runtime/metadata.xml index 5f0e6d6b486ee..952f75c55c761 100644 --- a/dev-libs/rocr-runtime/metadata.xml +++ b/dev-libs/rocr-runtime/metadata.xml @@ -14,6 +14,6 @@ Sv. Lockal - ROCm/ROCR-Runtime + ROCm/rocm-systems diff --git a/dev-libs/rocr-runtime/rocr-runtime-7.0.2.ebuild b/dev-libs/rocr-runtime/rocr-runtime-7.0.2.ebuild new file mode 100644 index 0000000000000..7d7314ea194ce --- /dev/null +++ b/dev-libs/rocr-runtime/rocr-runtime-7.0.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 20 ) + +inherit cmake flag-o-matic llvm-r1 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/ROCm/ROCR-Runtime/" + inherit git-r3 + S="${WORKDIR}/${P}" +else + SRC_URI="https://github.com/ROCm/ROCR-Runtime/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCR-Runtime-rocm-${PV}" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Runtime" +HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/rocr-runtime" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +IUSE="debug" + +COMMON_DEPEND="dev-libs/elfutils + x11-libs/libdrm" +DEPEND="${COMMON_DEPEND} + dev-libs/roct-thunk-interface:${SLOT} + dev-libs/rocm-device-libs:${SLOT} + $(llvm_gen_dep " + llvm-core/clang:\${LLVM_SLOT}= + llvm-core/lld:\${LLVM_SLOT}= + ") +" +RDEPEND="${DEPEND}" +BDEPEND="app-editors/vim-core" + # vim-core is needed for "xxd" + +PATCHES=( + "${FILESDIR}/${PN}-6.3.0-use-system-hsakmt.patch" +) + +# skip false positive detection in samples, bug #958188 +CMAKE_QA_COMPAT_SKIP=1 + +src_prepare() { + cd "${S}/runtime/hsa-runtime" || die + + # Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ... + sed -e "s:-O2:--rocm-path=${EPREFIX}/usr/lib/ -O2:" -i image/blit_src/CMakeLists.txt || die + + cd "${S}" || die + cmake_src_prepare +} + +src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/856091 + # https://github.com/ROCm/ROCR-Runtime/issues/182 + filter-lto + + use debug || append-cxxflags "-DNDEBUG" + + local mycmakeargs=( + -DCMAKE_DISABLE_FIND_PACKAGE_rocprofiler-register=ON + ) + + cmake_src_configure +}