mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 01:37:34 -08:00
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>
16 lines
552 B
Diff
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})
|