HIP: Ensure lib64 directories are included in hip-lang dependency search

When the target ABI is unspecified, find_package should include lib64
directories in hip-lang dependency search, regardless of whether hip-lang
is packaged under lib or lib64.

Fixes: #26194
This commit is contained in:
Ioannis Assiouras
2024-08-15 22:12:33 +01:00
parent 2904ce00d2
commit c34d827622

View File

@@ -223,7 +223,7 @@ if(CMAKE_HIP_PLATFORM STREQUAL "amd")
endif()
unset(_CMAKE_HIP_COMPILER_ROCM_LIB_DIRS)
endif()
if(CMAKE_HIP_COMPILER_ROCM_LIB MATCHES "/lib64$" AND NOT DEFINED CMAKE_SIZEOF_VOID_P)
if(NOT DEFINED CMAKE_SIZEOF_VOID_P)
# We have not yet determined the target ABI but we need 'find_package' to
# search lib64 directories to find hip-lang CMake package dependencies.
# This will be replaced by ABI detection later.