SWDEV-330775 - Update search path for LLVM

ROCm's LLVM will be moved into /opt/rocm-<ver>/lib/, teach hipcc and
hipconfig about the new location.

Change-Id: Ie7f17146771aff94c684deb22148226cbb3a2895
Tá an tiomantas seo le fáil i:
Siu Chi Chan údaraithe agus Mark Searles tiomanta 2022-11-14 13:31:07 -05:00
1 tuismitheoir c9ce9b3300
tiomantas 3d15f9cbda
5 comhad athraithe
+28 -7

Níor tháinig aon chomhaid le do chuardach

+1 -1
Féach ar an gComhad
@@ -175,7 +175,7 @@ endif()
if(__HIP_ENABLE_PCH)
find_package(LLVM REQUIRED CONFIG
PATHS
${ROCM_PATH}/llvm)
${ROCM_PATH}/llvm ${ROCM_PATH}/lib)
# find_package(LLVM) returns the lib/cmake/llvm location. We require the root.
if(NOT DEFINED HIP_LLVM_ROOT)
set(HIP_LLVM_ROOT "${LLVM_DIR}/../../..")
+2 -2
Féach ar an gComhad
@@ -122,8 +122,8 @@ add_to_config(_versionInfo HIP_VERSION_GITHASH)
# Enable preprocessed hiprtc-builtins library
include(HIPRTC RESULT_VARIABLE HIPRTC_CMAKE)
# Requires clang and llvm-mc to create this library.
find_package(LLVM REQUIRED CONFIG PATHS ${ROCM_PATH}/llvm)
find_package(Clang REQUIRED CONFIG PATHS ${ROCM_PATH}/llvm)
find_package(LLVM REQUIRED CONFIG PATHS ${ROCM_PATH}/llvm ${ROCM_PATH}/lib)
find_package(Clang REQUIRED CONFIG PATHS ${ROCM_PATH}/llvm ${ROCM_PATH}/lib)
set(HIPRTC_GEN_DIR "${CMAKE_CURRENT_BINARY_DIR}/hip_rtc_gen")
set(HIPRTC_GEN_HEADER "${HIPRTC_GEN_DIR}/hipRTC_header.h")
set(HIPRTC_GEN_MCIN "${HIPRTC_GEN_DIR}/hipRTC_header.mcin")