diff --git a/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt b/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt index 4bd32a1049..d3524be830 100644 --- a/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt +++ b/rocm-systems/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt @@ -93,6 +93,12 @@ if(NOT LibElf_FOUND) find_package(LibElf REQUIRED) endif() +## Find simde but only for aarch64 linux +if (UNIX AND (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|ARM64")) + find_package(simde REQUIRED) + target_link_libraries(hsa-runtime64 PRIVATE simde::simde) +endif() + ## Find AMD CUID library. set(AMDCUID_ROOT "/opt/amdcuid" CACHE PATH "Path to AMDCUID installation") find_library(AMDCUID_LIB