summaryrefslogtreecommitdiff
path: root/dev-libs/rocm-opencl-runtime
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
commita3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-libs/rocm-opencl-runtime
parentbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff)
downloadbaldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip
Adding metadata
Diffstat (limited to 'dev-libs/rocm-opencl-runtime')
-rw-r--r--dev-libs/rocm-opencl-runtime/Manifest5
-rw-r--r--dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.1.2-musl.patch24
-rw-r--r--dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch13
-rw-r--r--dev-libs/rocm-opencl-runtime/metadata.xml28
-rw-r--r--dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.3.3.ebuild101
-rw-r--r--dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.4.3.ebuild101
-rw-r--r--dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.0.2.ebuild111
-rw-r--r--dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.1.0.ebuild111
-rw-r--r--dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.2.0.ebuild107
9 files changed, 0 insertions, 601 deletions
diff --git a/dev-libs/rocm-opencl-runtime/Manifest b/dev-libs/rocm-opencl-runtime/Manifest
deleted file mode 100644
index 2ff84dbd9dce..000000000000
--- a/dev-libs/rocm-opencl-runtime/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-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
-DIST rocm-clr-7.0.2.tar.gz 2171932 BLAKE2B b14c1e7f42e7bf0e7b3514095495524ae572f65fa28780ef74853540d2f2952f97e0d82be09f70756a860592e7ae0ef738239a34715dee79d9a293d02ce7337e SHA512 eb80cd47c8a3e3fa8948cc58c6b8b158b2e2ae49f70a63f7040fe59a309bdd4f29334f6edc7950d13932c50162884288e27e2308b85293f68739402547d7ad36
-DIST rocm-clr-7.1.0.tar.gz 2153804 BLAKE2B 6aa5660dba94b758e6c581887857527e95a25c5d1f538301bf519d7c8de46e127fed025c5e729a860e3399d6fa4007078f7ef9dd370621750b7823b7bc8f8a90 SHA512 3c25efa388b21d4dc4209e42c0c59639fa3a14cdb62851c33e3cb0467975266f49eee5b88d9f136c3d0ecf21c79f66b62638cd35e73f550659af8e7e9b15446b
-DIST rocm-clr-7.2.0.tar.gz 2138689 BLAKE2B 60a3fa575055701d026ff65fbc188fb1e586c6409ed825267e484eea51e3ab958dbea27a9be584f0f8d056bdf60f07d15b2207f4b4c58361dcf7e3458295d654 SHA512 ba276feb7a2d42814ab8019ec9caa3ac976bc72f8085a42726fa5d561e9da9bfb66414ad3c0052f6116c88d8a6ff27a79f8eb91080b38f57e04ad4137b18beef
diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.1.2-musl.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.1.2-musl.patch
deleted file mode 100644
index 424cd0dde119..000000000000
--- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.1.2-musl.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Fix "basename" and "__cpu_mask" definitions for musl
-
-Upstream PR: https://github.com/ROCm/clr/pull/83
---- a/rocclr/os/os.hpp
-+++ b/rocclr/os/os.hpp
-@@ -29,6 +29,7 @@
-
- #if defined(__linux__)
- #include <sched.h>
-+#include <libgen.h>
- #endif
-
- #ifdef _WIN32
-@@ -377,6 +378,10 @@ ALWAYSINLINE address Os::currentStackPtr() {
-
- #if defined(__linux__)
-
-+#ifndef __GLIBC__
-+typedef unsigned long int __cpu_mask;
-+#endif
-+
- inline void Os::ThreadAffinityMask::init() { CPU_ZERO(&mask_); }
-
- inline void Os::ThreadAffinityMask::set(uint cpu) { CPU_SET(cpu, &mask_); }
diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch
deleted file mode 100644
index 17c6ebcc6f6e..000000000000
--- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-There is no ROCM_LIBPATCH_VERSION outside of AMD farm.
-Upstream bug: https://github.com/ROCm/clr/issues/112
---- a/opencl/amdocl/CMakeLists.txt
-+++ b/opencl/amdocl/CMakeLists.txt
-@@ -66,6 +66,8 @@ set(AMDOCL_LIB_VERSION_MAJOR "2")
- set(AMDOCL_LIB_VERSION_MINOR "1")
- if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
- set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}.$ENV{ROCM_LIBPATCH_VERSION}")
-+else()
-+ set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}")
- endif()
-
- set_target_properties(amdocl PROPERTIES
diff --git a/dev-libs/rocm-opencl-runtime/metadata.xml b/dev-libs/rocm-opencl-runtime/metadata.xml
deleted file mode 100644
index ac0cd937b8fe..000000000000
--- a/dev-libs/rocm-opencl-runtime/metadata.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>lockalsash@gmail.com</email>
- <name>Sv. Lockal</name>
- <description>Primary maintainer</description>
- </maintainer>
- <maintainer type="person" proxied="yes">
- <email>xgreenlandforwyy@gmail.com</email>
- <name>Yiyang Wu</name>
- </maintainer>
- <maintainer type="person" proxied="yes">
- <email>negril.nx+gentoo@gmail.com</email>
- <name>Paul Zander</name>
- <description>General GPGPU stuff</description>
- </maintainer>
- <maintainer type="project" proxied="proxy">
- <email>sci@gentoo.org</email>
- <name>Gentoo Science Project</name>
- </maintainer>
- <upstream>
- <remote-id type="github">ROCm/rocm-systems</remote-id>
- </upstream>
- <use>
- <flag name="numa">Enable NUMA support using <pkg>sys-process/numactl</pkg> (NUMA kernel support is also required)</flag>
- </use>
-</pkgmetadata>
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.3.3.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.3.3.ebuild
deleted file mode 100644
index 32e9d9fa8199..000000000000
--- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.3.3.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ROCM_SKIP_GLOBALS=1
-inherit cmake edo flag-o-matic rocm
-
-DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime"
-HOMEPAGE="https://github.com/ROCm/clr"
-
-SRC_URI="https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz"
-S="${WORKDIR}/clr-rocm-${PV}/"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="debug test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- dev-libs/rocr-runtime:${SLOT}
- dev-libs/rocm-comgr:${SLOT}
- dev-libs/rocm-device-libs:${SLOT}
- >=virtual/opencl-3
- media-libs/mesa[-opencl]
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- >=dev-build/rocm-cmake-6.0
- media-libs/glew
- test? ( >=x11-apps/mesa-progs-8.5.0[X] )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-6.2.4-fix-lib-version.patch"
- "${FILESDIR}/${PN}-6.1.2-musl.patch"
-)
-
-src_configure() {
- # -Werror=strict-aliasing
- # https://bugs.gentoo.org/856088
- # https://github.com/ROCm/clr/issues/64
- #
- # Do not trust it for LTO either
- append-flags -fno-strict-aliasing
- filter-lto
-
- # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155
- append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
- # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120
- append-cflags -fcommon
-
- local mycmakeargs=(
- -Wno-dev
- -DROCM_PATH="${EPREFIX}/usr"
- -DBUILD_TESTS=$(usex test ON OFF)
- -DEMU_ENV=ON
- -DBUILD_ICD=ON
- -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF
- -DCLR_BUILD_OCL=on
- )
- cmake_src_configure
-}
-
-src_install() {
- insinto /etc/OpenCL/vendors
- doins opencl/config/amdocl64.icd
-
- cd "${BUILD_DIR}"/opencl || die
- insinto /usr/lib64
- doins amdocl/libamdocl64.so*
- doins tools/cltrace/libcltrace.so
-}
-
-src_test() {
- check_amdgpu
- cd "${BUILD_DIR}"/tests/ocltst || die
- export OCL_ICD_FILENAMES="${BUILD_DIR}"/amdocl/libamdocl64.so
- local instruction1="Please start an X server using amdgpu driver (not Xvfb!),"
- local instruction2="and export OCLGL_DISPLAY=\${DISPLAY} OCLGL_XAUTHORITY=\${XAUTHORITY} before reruning the test."
- if [[ -n ${OCLGL_DISPLAY+x} ]]; then
- export DISPLAY=${OCLGL_DISPLAY}
- export XAUTHORITY=${OCLGL_XAUTHORITY}
- ebegin "Running oclgl test under DISPLAY ${OCLGL_DISPLAY}"
- if ! glxinfo | grep "OpenGL vendor string: AMD"; then
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "This display does not have AMD OpenGL vendor!"
- fi
- ./ocltst -m $(realpath liboclgl.so) -A ogl.exclude
- eend $? || die "oclgl test failed"
- else
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "\${OCLGL_DISPLAY} not set."
- fi
- edob ./ocltst -m $(realpath liboclruntime.so) -A oclruntime.exclude
- edob ./ocltst -m $(realpath liboclperf.so) -A oclperf.exclude
-}
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.4.3.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.4.3.ebuild
deleted file mode 100644
index 32e9d9fa8199..000000000000
--- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.4.3.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ROCM_SKIP_GLOBALS=1
-inherit cmake edo flag-o-matic rocm
-
-DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime"
-HOMEPAGE="https://github.com/ROCm/clr"
-
-SRC_URI="https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz"
-S="${WORKDIR}/clr-rocm-${PV}/"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="debug test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- dev-libs/rocr-runtime:${SLOT}
- dev-libs/rocm-comgr:${SLOT}
- dev-libs/rocm-device-libs:${SLOT}
- >=virtual/opencl-3
- media-libs/mesa[-opencl]
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- >=dev-build/rocm-cmake-6.0
- media-libs/glew
- test? ( >=x11-apps/mesa-progs-8.5.0[X] )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-6.2.4-fix-lib-version.patch"
- "${FILESDIR}/${PN}-6.1.2-musl.patch"
-)
-
-src_configure() {
- # -Werror=strict-aliasing
- # https://bugs.gentoo.org/856088
- # https://github.com/ROCm/clr/issues/64
- #
- # Do not trust it for LTO either
- append-flags -fno-strict-aliasing
- filter-lto
-
- # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155
- append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
- # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120
- append-cflags -fcommon
-
- local mycmakeargs=(
- -Wno-dev
- -DROCM_PATH="${EPREFIX}/usr"
- -DBUILD_TESTS=$(usex test ON OFF)
- -DEMU_ENV=ON
- -DBUILD_ICD=ON
- -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF
- -DCLR_BUILD_OCL=on
- )
- cmake_src_configure
-}
-
-src_install() {
- insinto /etc/OpenCL/vendors
- doins opencl/config/amdocl64.icd
-
- cd "${BUILD_DIR}"/opencl || die
- insinto /usr/lib64
- doins amdocl/libamdocl64.so*
- doins tools/cltrace/libcltrace.so
-}
-
-src_test() {
- check_amdgpu
- cd "${BUILD_DIR}"/tests/ocltst || die
- export OCL_ICD_FILENAMES="${BUILD_DIR}"/amdocl/libamdocl64.so
- local instruction1="Please start an X server using amdgpu driver (not Xvfb!),"
- local instruction2="and export OCLGL_DISPLAY=\${DISPLAY} OCLGL_XAUTHORITY=\${XAUTHORITY} before reruning the test."
- if [[ -n ${OCLGL_DISPLAY+x} ]]; then
- export DISPLAY=${OCLGL_DISPLAY}
- export XAUTHORITY=${OCLGL_XAUTHORITY}
- ebegin "Running oclgl test under DISPLAY ${OCLGL_DISPLAY}"
- if ! glxinfo | grep "OpenGL vendor string: AMD"; then
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "This display does not have AMD OpenGL vendor!"
- fi
- ./ocltst -m $(realpath liboclgl.so) -A ogl.exclude
- eend $? || die "oclgl test failed"
- else
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "\${OCLGL_DISPLAY} not set."
- fi
- edob ./ocltst -m $(realpath liboclruntime.so) -A oclruntime.exclude
- edob ./ocltst -m $(realpath liboclperf.so) -A oclperf.exclude
-}
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.0.2.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.0.2.ebuild
deleted file mode 100644
index df416e6dc847..000000000000
--- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.0.2.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ROCM_SKIP_GLOBALS=1
-inherit cmake edo flag-o-matic rocm
-
-DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/clr"
-
-SRC_URI="https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz"
-S="${WORKDIR}/clr-rocm-${PV}/"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="debug numa test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- dev-libs/rocr-runtime:${SLOT}
- dev-libs/rocm-comgr:${SLOT}
- dev-libs/rocm-device-libs:${SLOT}
- >=virtual/opencl-3
- media-libs/mesa[-opencl]
- numa? ( sys-process/numactl )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- >=dev-build/rocm-cmake-6.0
- media-libs/glew
- test? ( >=x11-apps/mesa-progs-8.5.0[X] )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-6.2.4-fix-lib-version.patch"
- "${FILESDIR}/${PN}-6.1.2-musl.patch"
-)
-
-src_prepare() {
- # Compatibility with CMake < 3.10 will be removed
- sed -e "/cmake_minimum_required/ s/3\.5/3.10/" \
- -i opencl/khronos/icd/CMakeLists.txt opencl/khronos/headers/opencl2.2/tests/CMakeLists.txt || die
- cmake_src_prepare
-}
-
-src_configure() {
- # -Werror=strict-aliasing
- # https://bugs.gentoo.org/856088
- # https://github.com/ROCm/clr/issues/64
- #
- # Do not trust it for LTO either
- append-flags -fno-strict-aliasing
- filter-lto
-
- # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155
- append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
- # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120
- append-cflags -fcommon
-
- local mycmakeargs=(
- -Wno-dev
- -DROCM_PATH="${EPREFIX}/usr"
- -DBUILD_TESTS=$(usex test ON OFF)
- -DEMU_ENV=ON
- -DBUILD_ICD=ON
- -DCLR_BUILD_OCL=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_NUMA="$(usex !numa)"
- -DCMAKE_REQUIRE_FIND_PACKAGE_NUMA="$(usex numa)"
- )
- cmake_src_configure
-}
-
-src_install() {
- insinto /etc/OpenCL/vendors
- doins opencl/config/amdocl64.icd
-
- cd "${BUILD_DIR}"/opencl || die
- insinto /usr/lib64
- doins amdocl/libamdocl64.so*
- doins tools/cltrace/libcltrace.so
-}
-
-src_test() {
- check_amdgpu
- cd "${BUILD_DIR}"/tests/ocltst || die
- export OCL_ICD_FILENAMES="${BUILD_DIR}"/amdocl/libamdocl64.so
- local instruction1="Please start an X server using amdgpu driver (not Xvfb!),"
- local instruction2="and export OCLGL_DISPLAY=\${DISPLAY} OCLGL_XAUTHORITY=\${XAUTHORITY} before reruning the test."
- if [[ -n ${OCLGL_DISPLAY+x} ]]; then
- export DISPLAY=${OCLGL_DISPLAY}
- export XAUTHORITY=${OCLGL_XAUTHORITY}
- ebegin "Running oclgl test under DISPLAY ${OCLGL_DISPLAY}"
- if ! glxinfo | grep "OpenGL vendor string: AMD"; then
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "This display does not have AMD OpenGL vendor!"
- fi
- ./ocltst -m $(realpath liboclgl.so) -A ogl.exclude
- eend $? || die "oclgl test failed"
- else
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "\${OCLGL_DISPLAY} not set."
- fi
- edob ./ocltst -m $(realpath liboclruntime.so) -A oclruntime.exclude
- edob ./ocltst -m $(realpath liboclperf.so) -A oclperf.exclude
-}
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.1.0.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.1.0.ebuild
deleted file mode 100644
index df416e6dc847..000000000000
--- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.1.0.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ROCM_SKIP_GLOBALS=1
-inherit cmake edo flag-o-matic rocm
-
-DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/clr"
-
-SRC_URI="https://github.com/ROCm/clr/archive/refs/tags/rocm-${PV}.tar.gz -> rocm-clr-${PV}.tar.gz"
-S="${WORKDIR}/clr-rocm-${PV}/"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="debug numa test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- dev-libs/rocr-runtime:${SLOT}
- dev-libs/rocm-comgr:${SLOT}
- dev-libs/rocm-device-libs:${SLOT}
- >=virtual/opencl-3
- media-libs/mesa[-opencl]
- numa? ( sys-process/numactl )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- >=dev-build/rocm-cmake-6.0
- media-libs/glew
- test? ( >=x11-apps/mesa-progs-8.5.0[X] )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-6.2.4-fix-lib-version.patch"
- "${FILESDIR}/${PN}-6.1.2-musl.patch"
-)
-
-src_prepare() {
- # Compatibility with CMake < 3.10 will be removed
- sed -e "/cmake_minimum_required/ s/3\.5/3.10/" \
- -i opencl/khronos/icd/CMakeLists.txt opencl/khronos/headers/opencl2.2/tests/CMakeLists.txt || die
- cmake_src_prepare
-}
-
-src_configure() {
- # -Werror=strict-aliasing
- # https://bugs.gentoo.org/856088
- # https://github.com/ROCm/clr/issues/64
- #
- # Do not trust it for LTO either
- append-flags -fno-strict-aliasing
- filter-lto
-
- # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155
- append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
- # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120
- append-cflags -fcommon
-
- local mycmakeargs=(
- -Wno-dev
- -DROCM_PATH="${EPREFIX}/usr"
- -DBUILD_TESTS=$(usex test ON OFF)
- -DEMU_ENV=ON
- -DBUILD_ICD=ON
- -DCLR_BUILD_OCL=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_NUMA="$(usex !numa)"
- -DCMAKE_REQUIRE_FIND_PACKAGE_NUMA="$(usex numa)"
- )
- cmake_src_configure
-}
-
-src_install() {
- insinto /etc/OpenCL/vendors
- doins opencl/config/amdocl64.icd
-
- cd "${BUILD_DIR}"/opencl || die
- insinto /usr/lib64
- doins amdocl/libamdocl64.so*
- doins tools/cltrace/libcltrace.so
-}
-
-src_test() {
- check_amdgpu
- cd "${BUILD_DIR}"/tests/ocltst || die
- export OCL_ICD_FILENAMES="${BUILD_DIR}"/amdocl/libamdocl64.so
- local instruction1="Please start an X server using amdgpu driver (not Xvfb!),"
- local instruction2="and export OCLGL_DISPLAY=\${DISPLAY} OCLGL_XAUTHORITY=\${XAUTHORITY} before reruning the test."
- if [[ -n ${OCLGL_DISPLAY+x} ]]; then
- export DISPLAY=${OCLGL_DISPLAY}
- export XAUTHORITY=${OCLGL_XAUTHORITY}
- ebegin "Running oclgl test under DISPLAY ${OCLGL_DISPLAY}"
- if ! glxinfo | grep "OpenGL vendor string: AMD"; then
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "This display does not have AMD OpenGL vendor!"
- fi
- ./ocltst -m $(realpath liboclgl.so) -A ogl.exclude
- eend $? || die "oclgl test failed"
- else
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "\${OCLGL_DISPLAY} not set."
- fi
- edob ./ocltst -m $(realpath liboclruntime.so) -A oclruntime.exclude
- edob ./ocltst -m $(realpath liboclperf.so) -A oclperf.exclude
-}
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.2.0.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.2.0.ebuild
deleted file mode 100644
index c7005cf3ae8e..000000000000
--- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-7.2.0.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ROCM_SKIP_GLOBALS=1
-inherit cmake edo flag-o-matic rocm
-
-DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/clr"
-
-SRC_URI="https://github.com/ROCm/rocm-systems/releases/download/rocm-${PV}/clr.tar.gz -> rocm-clr-${PV}.tar.gz"
-S="${WORKDIR}/clr"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="debug test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- dev-libs/rocr-runtime:${SLOT}
- dev-libs/rocm-comgr:${SLOT}
- dev-libs/rocm-device-libs:${SLOT}
- >=virtual/opencl-3
- media-libs/mesa[-opencl]
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- >=dev-build/rocm-cmake-6.0
- media-libs/glew
- test? ( >=x11-apps/mesa-progs-8.5.0[X] )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-6.2.4-fix-lib-version.patch"
-)
-
-src_prepare() {
- # Compatibility with CMake < 3.10 will be removed
- sed -e "/cmake_minimum_required/ s/3\.5/3.10/" \
- -i opencl/khronos/icd/CMakeLists.txt opencl/khronos/headers/opencl2.2/tests/CMakeLists.txt || die
- cmake_src_prepare
-}
-
-src_configure() {
- # -Werror=strict-aliasing
- # https://bugs.gentoo.org/856088
- # https://github.com/ROCm/clr/issues/64
- #
- # Do not trust it for LTO either
- append-flags -fno-strict-aliasing
- filter-lto
-
- # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155
- append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
- # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120
- append-cflags -fcommon
-
- local mycmakeargs=(
- -Wno-dev
- -DROCM_PATH="${EPREFIX}/usr"
- -DBUILD_TESTS=$(usex test ON OFF)
- -DEMU_ENV=ON
- -DBUILD_ICD=ON
- -DCLR_BUILD_OCL=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
- )
- cmake_src_configure
-}
-
-src_install() {
- insinto /etc/OpenCL/vendors
- doins opencl/config/amdocl64.icd
-
- cd "${BUILD_DIR}"/opencl || die
- insinto /usr/lib64
- doins amdocl/libamdocl64.so*
- doins tools/cltrace/libcltrace.so
-}
-
-src_test() {
- check_amdgpu
- cd "${BUILD_DIR}"/tests/ocltst || die
- export OCL_ICD_FILENAMES="${BUILD_DIR}"/amdocl/libamdocl64.so
- local instruction1="Please start an X server using amdgpu driver (not Xvfb!),"
- local instruction2="and export OCLGL_DISPLAY=\${DISPLAY} OCLGL_XAUTHORITY=\${XAUTHORITY} before reruning the test."
- if [[ -n ${OCLGL_DISPLAY+x} ]]; then
- export DISPLAY=${OCLGL_DISPLAY}
- export XAUTHORITY=${OCLGL_XAUTHORITY}
- ebegin "Running oclgl test under DISPLAY ${OCLGL_DISPLAY}"
- if ! glxinfo | grep "OpenGL vendor string: AMD"; then
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "This display does not have AMD OpenGL vendor!"
- fi
- ./ocltst -m $(realpath liboclgl.so) -A ogl.exclude
- eend $? || die "oclgl test failed"
- else
- ewarn "${instruction1}"
- ewarn "${instruction2}"
- die "\${OCLGL_DISPLAY} not set."
- fi
- edob ./ocltst -m $(realpath liboclruntime.so) -A oclruntime.exclude
- edob ./ocltst -m $(realpath liboclperf.so) -A oclperf.exclude
-}