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

[ROCm/hip-tests commit: 814b1c81cf]
This commit is contained in:
Godavarthy Surya, Anusha
2025-06-05 15:30:33 +05:30
committed by GitHub
orang tua d0aa27a704
melakukan 1e71fb6b61
29 mengubah file dengan 145 tambahan dan 30 penghapusan
@@ -4,7 +4,11 @@ cmake_minimum_required(VERSION 3.10)
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()
if(NOT DEFINED HIP_PATH)
if(NOT DEFINED ENV{HIP_PATH})