commit: cbb1ec071fdd7c549f89419cabf8330e204bbc32 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> AuthorDate: Sun Jul 3 10:46:45 2022 +0000 Commit: 罗百科 <patrick <AT> gentoo <DOT> org> CommitDate: Sun Jul 3 10:47:04 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbb1ec07
dev-libs/rocm-opencl-runtime: Re-enable gfx800 family of cards Discussion upstream at https://github.com/RadeonOpenCompute/ROCm/issues/1659 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> .../files/rocm-opencl-runtime-5.0.2-enable-gfx800.patch | 16 ++++++++++++++++ ...-5.0.2.ebuild => rocm-opencl-runtime-5.0.2-r1.ebuild} | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-5.0.2-enable-gfx800.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-5.0.2-enable-gfx800.patch new file mode 100644 index 000000000000..29482340295e --- /dev/null +++ b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-5.0.2-enable-gfx800.patch @@ -0,0 +1,16 @@ +#From xuhuisheng +#at https://github.com/RadeonOpenCompute/ROCm/issues/1659#issuecomment-1041026624 + +diff --git a/utils/flags.hpp b/utils/flags.hpp +index 8f0228cc..2eaa47c5 100644 +--- a/utils/flags.hpp ++++ b/utils/flags.hpp +@@ -245,7 +245,7 @@ release(bool, ROC_SYSTEM_SCOPE_SIGNAL, true, \ + "Enable system scope for signals (uses interrupts).") \ + release(bool, ROC_SKIP_COPY_SYNC, false, \ + "Skips copy syncs if runtime can predict the same engine.") \ +-release(bool, ROC_ENABLE_PRE_VEGA, false, \ ++release(bool, ROC_ENABLE_PRE_VEGA, true, \ + "Enable support of pre-vega ASICs in ROCm path") \ + release(bool, HIP_FORCE_QUEUE_PROFILING, false, \ + "Force command queue profiling by default") \ diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.0.2.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.0.2-r1.ebuild similarity index 94% rename from dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.0.2.ebuild rename to dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.0.2-r1.ebuild index a90a016047af..9c74aa789f97 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.0.2.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.0.2-r1.ebuild @@ -45,7 +45,8 @@ src_prepare() { local S="${S1}" local CMAKE_USE_DIR="${S1}" # Bug #753377 - local PATCHES=() + # patch re-enables accidentally disabled gfx8000 family + local PATCHES=("${FILESDIR}/${PN}-5.0.2-enable-gfx800.patch") BUILD_DIR="${S1}_build" cmake_src_prepare }
