Make ROCM_DIR default ROCm path for rocprof

Signed-off-by: zichguan-amd <zichuan.guan@amd.com>


[ROCm/rdc commit: c042b4f582]
이 커밋은 다음에 포함됨:
zichguan-amd 작성하고 Guan, Zichuan가 2024-12-02 11:19:56 -05:00를 커밋함
1 부모 3f11f0e76b
커밋 a5227aa61b
2 파일이 변경됨
+4 -1

검색과 일치하는 파일 없음

+3
파일 보기
@@ -83,3 +83,6 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL Release)
TARGET ${RDC_LIB}
POST_BUILD COMMAND ${CMAKE_STRIP} ${RDC_LIB_COMPONENT}.so)
endif()
# pass ROCM_DIR to compiler
target_compile_definitions(${RDC_LIB} PRIVATE ROCM_DIR="${ROCM_DIR}")
+1 -1
파일 보기
@@ -154,7 +154,7 @@ rdc_status_t RdcRocpLib::rdc_telemetry_fields_unwatch(rdc_gpu_field_t* fields,
std::string RdcRocpLib::get_rocm_path() {
// set default rocm path in case lookup fails
std::string rocm_path("/opt/rocm");
std::string rocm_path(ROCM_DIR);
const char* rocm_path_env = getenv("ROCM_PATH");
if (rocm_path_env != nullptr) {
rocm_path = rocm_path_env;