Files
gentoo/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch
Sv. Lockal e4d636c887 dev-libs/rocm-opencl-runtime: add 6.3.0, drop 6.2.4
Apply must patch to 6.1.2 to fix compilation there too.

Closes: https://bugs.gentoo.org/939920
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2025-01-05 21:46:25 +00:00

14 lines
575 B
Diff

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