From 0d3219165e816e09207a0e1b5b5c8ad764228615 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 5 Jul 2023 22:12:15 +0100 Subject: gentoo auto-resync : 05:07:2023 - 22:12:15 --- dev-libs/rocm-opencl-runtime/Manifest | 8 +- .../rocm-opencl-runtime-5.1.3.ebuild | 3 +- .../rocm-opencl-runtime-5.3.3-r1.ebuild | 3 +- .../rocm-opencl-runtime-5.4.3-r1.ebuild | 133 +++++++++++++++++++++ .../rocm-opencl-runtime-5.4.3.ebuild | 130 -------------------- .../rocm-opencl-runtime-9999.ebuild | 3 +- 6 files changed, 143 insertions(+), 137 deletions(-) create mode 100644 dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild delete mode 100644 dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3.ebuild (limited to 'dev-libs/rocm-opencl-runtime') diff --git a/dev-libs/rocm-opencl-runtime/Manifest b/dev-libs/rocm-opencl-runtime/Manifest index fb2754d9085c..6eeacfd4fd48 100644 --- a/dev-libs/rocm-opencl-runtime/Manifest +++ b/dev-libs/rocm-opencl-runtime/Manifest @@ -10,8 +10,8 @@ DIST rocclr-5.4.3.tar.gz 640557 BLAKE2B 9ab91bab7ffb06c9c0d1c2ae79533fccc597071d DIST rocm-opencl-runtime-5.1.3.tar.gz 1004765 BLAKE2B 64d9b42026d2be1d0e4aa666785699f6b4ec0584a927904a94bf830883050943503f8bdd7c97438a2fb11c71686a330d526f633959916c5c6c8da2e037841e79 SHA512 b83c3ae0bfad80f867bacce36710a8964f6dd7e64bf50da3ec6ce842217d6de63299d9ceaab9dc25a22252484520a85d02859809463dad5dda9b1f00a86863e0 DIST rocm-opencl-runtime-5.3.3.tar.gz 1007773 BLAKE2B a3f600a68183337f92b152a123241cb7025889cca2ef6814d9d5b5a2146a78703b171d20bcb432bc7a2cdd1f24ad349408c17816b25a66702e9f0f5345af9082 SHA512 391f0f244b7f02972df8cada821e69ee8d81d96b9cff3c14f1d0838da583d8fb136ec4bd5ee820f6dd261968e9eef5e9a5b10b7bb76b1b64625c399d79bcb03f DIST rocm-opencl-runtime-5.4.3.tar.gz 1005268 BLAKE2B f9398e4c2b0f045f1b5d8df9f31b7f2bef6a9201885aa6ee5fc5d71632cfde26a078d9a5ea38c3da12d3c187faf04c7bdcf1a8ecb9927cdba56b1efdfcdc44ee SHA512 f65d4622ce8721a6b91ab5b5b306d142ba507d3e631ac3ab0b76c5bc6d8d18455e02debd954c82e7eb609f232b509f1ec1a013dc2fad467c2c2ad31fdf15755d -EBUILD rocm-opencl-runtime-5.1.3.ebuild 3862 BLAKE2B dcafdf4ab1160b25ebe915a01309dd4b17afbc4234637cded23c727f99fda56b6c3bad7cfc0c9ed3aee080f5ce00fa61409ff39600580454b48e0b7bb0dec257 SHA512 0d3d636980e132e909a0df480698331e92d2a8c0fc11158c26f159003632985927c626f9f23873e6a0c090f3993cd3ecf94250c06e3549416aaf349ace6426cd -EBUILD rocm-opencl-runtime-5.3.3-r1.ebuild 3439 BLAKE2B d792a570030d12d5750fbfa928e1d66f240459aae3dfb8f5f6cbea46ef6349eee4b567644c3efded318885276e8c5d1bc88436dc2ba483b92b67f6dfbb684852 SHA512 330dc61720dc774146b604ca392610ca1b07f4785231172a01cc0a1618fda9af01c72d92539e40e6d13ba6e10fc1a30664a2384b4152e6a965e88305490baca4 -EBUILD rocm-opencl-runtime-5.4.3.ebuild 3836 BLAKE2B 9780ffdbdf472cb0974dff1df640ee384b190735eca870f84830f6a0b50b942311957aecf4e7a2de5e3bf3dfd0e8cf8ddd41348cc967a84add7bd4ec50245fa2 SHA512 4ff353c488400fbf3cc10deac7117dbf8c95672b03d5e738adb4ad488eb9f26f37f17e22a30bdbc5e1ee2777af3b1ba4cd2c89f56149ec7f28f3dee6bc661119 -EBUILD rocm-opencl-runtime-9999.ebuild 3720 BLAKE2B adbf87566b21defccd420ed65a350a31d4e775bd876392eca8f67c16083530efd2a0566052ba07b0b71346c178217e71888f4b412e69a9db2525cafc840446cf SHA512 96ec382f016e00ce391100bca0c6f9a8b3c2f7ade745b6b3455ff3bad57c48d0eb3db06a5ac2cf0c272d55bb3efff6806c44f43581b9562bc348515d161a605c +EBUILD rocm-opencl-runtime-5.1.3.ebuild 3887 BLAKE2B 322c7eb5d35c8d9468da57da8d9b10e449cbaacb08e3c70241ac050f0feefb4a88cbb14921dea89d4d04944ee3c532c83c351e6e85663f1c36e65710d34affa2 SHA512 b17251f136606344e2264a40401ec965fb7a4f54efebe138735a9b9f59be34c99838a43cee070daeea4996051dc30a64b79542c679eed7fce4139849042f0478 +EBUILD rocm-opencl-runtime-5.3.3-r1.ebuild 3464 BLAKE2B bb991c34e75068a9c91c21afcd60e20130c0d056792080bb1b6e16fdc0ca60129f4efc984c3a50dc3435f47fdd126752d762d45e5ee521a61691cdab1881465b SHA512 8606a190d00a3f32145ae43f402e6e034adca05c888fa13e27be4866da3a214f4c79faa5112ed6e0f0e0666f5dff48c285d9fe443c2261d30906430b1388fc3d +EBUILD rocm-opencl-runtime-5.4.3-r1.ebuild 3865 BLAKE2B d54114f6c6946beae67cd4748a9ae462e9b35de81b4fc6bd59775d6ffa71532eceda9e7e1a9c5a6ba21ccb1ed4f5d7fffa62945647629c6752dc11c2acfc281c SHA512 2aeafd80fdca860d06d296b1da791a61440c698b00cf1e3fb289864e613fc7d26baa2f6b25590d424aa1ea5aaf65f8c3827040029ee0de8e6159f3dd6497e1de +EBUILD rocm-opencl-runtime-9999.ebuild 3745 BLAKE2B 91635003fa3f6b7a8a18bf5c784628a920cf293526512df45db5db73d46b478389fb06d186b828e88a61bad93f47b40a75a7f79e6504d36e425f2f9973f663f0 SHA512 d497db6298a1811b43b537d81f780c38d8daa748c674497744327bf7a499854e3317d53a696ba4d6778d9b66fb226be4dcd1d52eba56cb0947e5045caa8a0944 MISC metadata.xml 525 BLAKE2B 9af34c6be2bb5ff304e4d01810b810eb8a0639d1972325fad3b81c93aa4d060cbebddc9c06da702dd80f9aa98549720cf2bc674d5b11ef6f99ed30efe50d2110 SHA512 c50670dde49ec0d9d3acca19d37842ecf567429f455e1b37c5181e5d4361d829eff0980ba35096ef42c0789f8904d52425faf4a2aabf641142722957b626378d diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild index e0845f49453a..e50c897d3dcc 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild @@ -21,7 +21,8 @@ RDEPEND=">=dev-libs/rocr-runtime-${PV} >=dev-libs/rocm-device-libs-${PV} >=virtual/opencl-3 media-libs/mesa" -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + dev-util/opencl-headers" BDEPEND=">=dev-util/rocm-cmake-${PV} media-libs/glew test? ( >=x11-apps/mesa-progs-8.5.0[X] ) diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild index a982c2d36ed0..6b0a63a9a65e 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild @@ -21,7 +21,8 @@ RDEPEND=">=dev-libs/rocr-runtime-${PV} >=dev-libs/rocm-device-libs-${PV} >=virtual/opencl-3 media-libs/mesa" -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + dev-util/opencl-headers" BDEPEND=">=dev-util/rocm-cmake-${PV} media-libs/glew test? ( >=x11-apps/mesa-progs-8.5.0[X] ) diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild new file mode 100644 index 000000000000..d8951635f728 --- /dev/null +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake edo flag-o-matic + +DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" + EGIT_CLR_REPO_URI="https://github.com/ROCm-Developer-Tools/ROCclr" + inherit git-r3 + S="${WORKDIR}/${P}" +else + KEYWORDS="~amd64" + SRC_URI="https://github.com/ROCm-Developer-Tools/ROCclr/archive/rocm-${PV}.tar.gz -> rocclr-${PV}.tar.gz + https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-${PV}.tar.gz -> rocm-opencl-runtime-${PV}.tar.gz" + S="${WORKDIR}/ROCm-OpenCL-Runtime-rocm-${PV}" +fi + +LICENSE="Apache-2.0 MIT" +SLOT="0/$(ver_cut 1-2)" +IUSE="debug test" +RESTRICT="!test? ( test )" + +RDEPEND=">=dev-libs/rocr-runtime-5.3 + >=dev-libs/rocm-comgr-5.3 + >=dev-libs/rocm-device-libs-5.3 + >=virtual/opencl-3 + media-libs/mesa" +DEPEND="${RDEPEND} + dev-util/opencl-headers" +BDEPEND=">=dev-util/rocm-cmake-5.3 + test? ( + >=x11-apps/mesa-progs-8.5.0[X] + media-libs/glew + ) + " + +CLR_S="${WORKDIR}/ROCclr-rocm-${PV}" +PATCHES=( "${FILESDIR}/${PN}-5.3.3-gcc13.patch" ) + +src_unpack () { +if [[ ${PV} == "9999" ]]; then + git-r3_fetch + git-r3_checkout + git-r3_fetch "${EGIT_CLR_REPO_URI}" + git-r3_checkout "${EGIT_CLR_REPO_URI}" "${CLR_S}" + else + default + fi +} +src_prepare() { + cmake_src_prepare + + pushd ${CLR_S} || die + # Bug #753377 + # patch re-enables accidentally disabled gfx800 family + eapply "${FILESDIR}/${PN}-5.0.2-enable-gfx800.patch" + eapply "${FILESDIR}/rocclr-5.3.3-gcc13.patch" + popd || die +} + +src_configure() { + # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 + append-cflags -fcommon + + local mycmakeargs=( + -Wno-dev + -DROCCLR_PATH="${CLR_S}" + -DAMD_OPENCL_PATH="${S}" + -DROCM_PATH="${EPREFIX}/usr" + -DBUILD_TESTS=$(usex test ON OFF) + -DEMU_ENV=ON + -DBUILD_ICD=OFF + -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF + ) + cmake_src_configure +} + +src_install() { + insinto /etc/OpenCL/vendors + doins config/amdocl64.icd + + cd "${BUILD_DIR}" || die + insinto /usr/lib64 + doins amdocl/libamdocl64.so + doins tools/cltrace/libcltrace.so +} + +# Copied from rocm.eclass. This ebuild does not need amdgpu_targets +# USE_EXPANDS, so it should not inherit rocm.eclass; it only uses the +# check_amdgpu function in src_test. Rename it to check-amdgpu to avoid +# pkgcheck warning. +check-amdgpu() { + for device in /dev/kfd /dev/dri/render*; do + addwrite ${device} + if [[ ! -r ${device} || ! -w ${device} ]]; then + eerror "Cannot read or write ${device}!" + eerror "Make sure it is present and check the permission." + ewarn "By default render group have access to it. Check if portage user is in render group." + die "${device} inaccessible" + fi + done +} + +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-5.4.3.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3.ebuild deleted file mode 100644 index 4ee8c36fb4d8..000000000000 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3.ebuild +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake edo flag-o-matic - -DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" -HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" - EGIT_CLR_REPO_URI="https://github.com/ROCm-Developer-Tools/ROCclr" - inherit git-r3 - S="${WORKDIR}/${P}" -else - KEYWORDS="~amd64" - SRC_URI="https://github.com/ROCm-Developer-Tools/ROCclr/archive/rocm-${PV}.tar.gz -> rocclr-${PV}.tar.gz - https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-${PV}.tar.gz -> rocm-opencl-runtime-${PV}.tar.gz" - S="${WORKDIR}/ROCm-OpenCL-Runtime-rocm-${PV}" -fi - -LICENSE="Apache-2.0 MIT" -SLOT="0/$(ver_cut 1-2)" -IUSE="debug test" -RESTRICT="!test? ( test )" - -RDEPEND=">=dev-libs/rocr-runtime-5.3 - >=dev-libs/rocm-comgr-5.3 - >=dev-libs/rocm-device-libs-5.3 - >=virtual/opencl-3 - media-libs/mesa" -DEPEND="${RDEPEND}" -BDEPEND=">=dev-util/rocm-cmake-5.3 - media-libs/glew - test? ( >=x11-apps/mesa-progs-8.5.0[X] ) - " - -CLR_S="${WORKDIR}/ROCclr-rocm-${PV}" -PATCHES=( "${FILESDIR}/${PN}-5.3.3-gcc13.patch" ) - -src_unpack () { -if [[ ${PV} == "9999" ]]; then - git-r3_fetch - git-r3_checkout - git-r3_fetch "${EGIT_CLR_REPO_URI}" - git-r3_checkout "${EGIT_CLR_REPO_URI}" "${CLR_S}" - else - default - fi -} -src_prepare() { - cmake_src_prepare - - pushd ${CLR_S} || die - # Bug #753377 - # patch re-enables accidentally disabled gfx800 family - eapply "${FILESDIR}/${PN}-5.0.2-enable-gfx800.patch" - eapply "${FILESDIR}/rocclr-5.3.3-gcc13.patch" - popd || die -} - -src_configure() { - # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 - append-cflags -fcommon - - local mycmakeargs=( - -Wno-dev - -DROCCLR_PATH="${CLR_S}" - -DAMD_OPENCL_PATH="${S}" - -DROCM_PATH="${EPREFIX}/usr" - -DBUILD_TESTS=$(usex test ON OFF) - -DEMU_ENV=ON - -DBUILD_ICD=OFF - -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF - ) - cmake_src_configure -} - -src_install() { - insinto /etc/OpenCL/vendors - doins config/amdocl64.icd - - cd "${BUILD_DIR}" || die - insinto /usr/lib64 - doins amdocl/libamdocl64.so - doins tools/cltrace/libcltrace.so -} - -# Copied from rocm.eclass. This ebuild does not need amdgpu_targets -# USE_EXPANDS, so it should not inherit rocm.eclass; it only uses the -# check_amdgpu function in src_test. Rename it to check-amdgpu to avoid -# pkgcheck warning. -check-amdgpu() { - for device in /dev/kfd /dev/dri/render*; do - addwrite ${device} - if [[ ! -r ${device} || ! -w ${device} ]]; then - eerror "Cannot read or write ${device}!" - eerror "Make sure it is present and check the permission." - ewarn "By default render group have access to it. Check if portage user is in render group." - die "${device} inaccessible" - fi - done -} - -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-9999.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild index 2fdb4a002b1c..1b92380587cf 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild @@ -29,7 +29,8 @@ RDEPEND=">=dev-libs/rocr-runtime-5.3 >=dev-libs/rocm-device-libs-5.3 >=virtual/opencl-3 media-libs/mesa" -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + dev-util/opencl-headers" BDEPEND=">=dev-util/rocm-cmake-5.3 media-libs/glew test? ( >=x11-apps/mesa-progs-8.5.0[X] ) -- cgit v1.2.3