mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
dev-libs/rocm-device-libs: add 6.4.3
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
This commit is contained in:
parent
846ab394a0
commit
f43dfa480b
@ -3,4 +3,5 @@ DIST llvm-project-rocm-6.1.2.tar.gz 195992927 BLAKE2B d821f29f2f1f7c1ff414c63a71
|
||||
DIST llvm-project-rocm-6.3.2.tar.gz 206671202 BLAKE2B a280e2be22b8eb9fd51814074447baed3637231d4bfbe391047a1fb2409197c8d8ba58cebb3aeaec15aa4daee9371311274b30ede48e0039d7c84e432b15de1a SHA512 314e27577af76268635f3c96ee3516829e4622913c3d0c4c68eccbaee0c9f7f5fc031cbd35827deb4bc29712592c424e296c15ce8c500c897bfb3eb19455899c
|
||||
DIST llvm-project-rocm-6.3.3.tar.gz 206663912 BLAKE2B 939527dbbcd0c4b4785e5cdbd7144149f169120506c2b5b00e84e8208e3877109e24cf58501a1317d1f9dcce0614cf47a0290cb2e0e10aa7b164bcb064c2ffbc SHA512 380d6ca72dd215b1996b14fe9b54f4981bd1d275aae22ed89f4f3efc46ec2988054cc98dcc45e1c678812c2bd3488ed6cf375ca193af4ad272a6cff7f2388872
|
||||
DIST llvm-project-rocm-6.4.1.tar.gz 218905831 BLAKE2B 188ec436e5ab6e50fee66ebc3a30c5e5703ca8770f309cca580c919567090bbdb23a5de51d36dabf9cb54f1142ab00d9756bec379670029c57d0f7a49fab2f13 SHA512 e0fd29953cfe7ae4b3f60aa25c1ec0f6071715afc8e275d62901dbd575b96afc673d61996300d3f7672005274fe84c7f934070614ac3deafcfa103d9514b3e41
|
||||
DIST llvm-project-rocm-6.4.3.tar.gz 218920681 BLAKE2B 85c29c1f66f9d23fa7fb6d98baf60cb08a8507a7b3a4c0a5054d9d4d3bc1fb7de56ddae583e37a36c7a3f17f9e57bd49777deca7560ca8b4882c1eea1db5b421 SHA512 b6b4149c6426793f4497dfd1200079b0caef4d5a6f49c1f3a301d70f5f7b322b850085ff2f89d55df1dfab6d6a97948fe4084d4ec14654ee97cdab26e71a45c0
|
||||
DIST rocm-device-libs-5.7.1.tar.gz 248357 BLAKE2B 829704382e9420ad79724a250ccfd65278eb697498805297d1a52b8ea35dbff46e11514b681243d61bfac05b8a9734f0cf22d721603e48fe2f9864368222b0bc SHA512 8755d0584fa3b8239f5642b4fb8f5e8dea20bbaca2ff8883894d3583913e9a1fd1552492b36e8ceff092f795783b734e68b002ee0c93711dccdf8e72c528c27c
|
||||
|
||||
95
dev-libs/rocm-device-libs/rocm-device-libs-6.4.3.ebuild
Normal file
95
dev-libs/rocm-device-libs/rocm-device-libs-6.4.3.ebuild
Normal file
@ -0,0 +1,95 @@
|
||||
# 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
|
||||
|
||||
MY_P=llvm-project-rocm-${PV}
|
||||
components=( "amd/device-libs" )
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/ROCm/llvm-project"
|
||||
inherit git-r3
|
||||
S="${WORKDIR}/${P}/${components[0]}"
|
||||
else
|
||||
SRC_URI="https://github.com/ROCm/llvm-project/archive/rocm-${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}/${components[0]}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Radeon Open Compute Device Libraries"
|
||||
HOMEPAGE="https://github.com/ROCm/llvm-project/tree/amd-staging/amd/device-libs"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
dev-build/rocm-cmake
|
||||
$(llvm_gen_dep '
|
||||
llvm-core/clang:${LLVM_SLOT}
|
||||
llvm-core/lld:${LLVM_SLOT}
|
||||
')
|
||||
"
|
||||
|
||||
CMAKE_BUILD_TYPE=Release
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-6.1.0-fix-llvm-link.patch"
|
||||
"${FILESDIR}/${PN}-6.2.0-test-bitcode-dir.patch"
|
||||
"${FILESDIR}/${PN}-6.4.2-cmake-4-compat.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
git-r3_fetch
|
||||
git-r3_checkout '' . '' "${components[@]}"
|
||||
else
|
||||
archive="${MY_P}.tar.gz"
|
||||
ebegin "Unpacking from ${archive}"
|
||||
tar -x -z -o \
|
||||
-f "${DISTDIR}/${archive}" \
|
||||
"${components[@]/#/${MY_P}/}" || die
|
||||
eend ${?}
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" \
|
||||
-i "${S}/cmake/OCL.cmake" \
|
||||
-i "${S}/cmake/Packages.cmake" || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Do not trust CMake with autoselecting Clang, as it autoselects the latest one
|
||||
# producing too modern LLVM bitcode and causing linker errors in other packages.
|
||||
llvm_prepend_path "${LLVM_SLOT}"
|
||||
local -x CC=${CHOST}-clang
|
||||
local -x CXX=${CHOST}-clang++
|
||||
# Clean up unsupported flags for the switched compiler, see #936099
|
||||
strip-unsupported-flags
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
# install symlink, so that clang won't ask for "--rocm-device-lib-path" flag anymore
|
||||
local bitcodedir="$(clang -print-resource-dir)/$(get_libdir)/amdgcn/bitcode"
|
||||
dosym -r "/usr/lib/amdgcn/bitcode" "${bitcodedir#${EPREFIX}}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# https://github.com/ROCm/llvm-project/issues/76
|
||||
# "Failing tests are on gfx that are not supported"
|
||||
local CMAKE_SKIP_TESTS=(
|
||||
compile_fract__gfx600
|
||||
compile_fract__gfx700
|
||||
)
|
||||
|
||||
cmake_src_test
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user