mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/rocm-opencl-runtime: add 6.4.3
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
This commit is contained in:
@@ -4,3 +4,4 @@ DIST rocm-clr-6.1.2.tar.gz 2031283 BLAKE2B d51d32a77794ea97f1a3817786c9fd6b48210
|
||||
DIST rocm-clr-6.3.2.tar.gz 2095677 BLAKE2B 2f1122a2058f8ba358fe48a46473f23c46a5413fef16515f103c21a8ae13bb76522fbe587cb9c9e6e3dd06f968402b6a881391823c80381c0c41072597c845ac SHA512 5bade294dc6fc60bf459bfd7124c354f2b0079167d3c8776a9e3d6d8320bb9b1a2a0770a466987e164994293024bf47de158ba207f077968dfccb7bf20fb884b
|
||||
DIST rocm-clr-6.3.3.tar.gz 2095704 BLAKE2B bdb315fc9f1f9c76aa2a345bd48a600c81f3b72eb68fee8862b5e155e7519bef6f6421698a43358c6fe0200bb0b6924ff819860d9a91a5c07fc3e9d44eeb1b16 SHA512 94d2959b981b324e0dae2d06e86c72cd01fa495de081666bcec2445c02bada22aa60e94ecac0ee63e70e52275f92caeefcb6dc96a3f0fba593896be7b0d8ab42
|
||||
DIST rocm-clr-6.4.1.tar.gz 2124791 BLAKE2B de500518740f472c2cc5d7f55a58793d37ca42f0cfe9d47b1f2de0258aa92591510f8cfcafcfc4ba2008c5d1b4301b29208bff57213fea028b0b7e9eb7b3cb4c SHA512 8d4c09cb8ccc633e214bbe646f8bbbcc1797bee71559ac0d3b09548ee271edc049db2ff8d9c8f849bb14c986770b06cd2238650b3fbb9799466aa5b5bdd7d7d6
|
||||
DIST rocm-clr-6.4.3.tar.gz 2126045 BLAKE2B eadeaa050e684373883faadfbf42d6b4152979154587afb1a2583bf9ddfb3ff9ab9787a433c8f380ac52012732ff2f68892ab256ec76f32557c164e9551745af SHA512 38daec86ea9c8e60f420b4eec5e96d88a4e51585dcbb7352bec27f0c712f4b856f413c42e2585c031a81e8046065d76763c624500ba786ae0e9133278f00418c
|
||||
|
||||
101
dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.4.3.ebuild
Normal file
101
dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.4.3.ebuild
Normal file
@@ -0,0 +1,101 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user