SWDEV-530015 - Override ROCM_PATH with env if it is set (#171)

Tá an tiomantas seo le fáil i:
Godavarthy Surya, Anusha údaraithe agus GitHub tiomanta 2025-06-05 15:30:33 +05:30
1 tuismitheoir 90d7eea054
tiomantas 814b1c81cf
29 comhad athraithe
+145 -30

Níor tháinig aon chomhaid le do chuardach

+5 -1
Féach ar an gComhad
@@ -26,7 +26,11 @@ include_directories(../../common)
if(UNIX)
if(NOT DEFINED ROCM_PATH)
set(ROCM_PATH "/opt/rocm" CACHE STRING "Default ROCM installation directory.")
if(DEFINED ENV{ROCM_PATH})
set(ROCM_PATH $ENV{ROCM_PATH} CACHE STRING "ROCM Path")
else()
set(ROCM_PATH "/opt/rocm" CACHE STRING "Default ROCM installation directory.")
endif()
endif()
# Search for rocm in common locations
list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH})