gentoo/dev-libs/rccl/files/rccl-6.0.2-fix-version-check.patch
Sv. Lockal 3456ce4e5f
dev-libs/rccl: add 6.1.1
Changes since 5.7.1:
* remove-chrpath patch is not needed now
* bad percent escape fix is not needed now
* addpredict in src_configure is not needed (compilation should not access device anyways)
* removing extra copy of headers is not needed
* new patch for missing ${ROCM_PATH}/.info/version is needed now
* rename ROCmSoftwarePlatform to ROCm in urls
* fix tests directory (in 5.7.1 too)

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-06-26 10:19:12 +01:00

16 lines
552 B
Diff

There is no /usr/.info/version file in Gentoo
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,10 +120,7 @@ execute_process(
message(STATUS "hipcc version: ${hipcc_version_string}")
## Check for ROCm version
-execute_process(
- COMMAND bash "-c" "cat ${ROCM_PATH}/.info/version"
- OUTPUT_VARIABLE rocm_version_string
-)
+set(rocm_version_string "@rocm_version@")
string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" rocm_version_matches ${rocm_version_string})
if (rocm_version_matches)
set(ROCM_MAJOR_VERSION ${CMAKE_MATCH_1})