From 7ab88b110f24869cea05960799780bbb3374b556 Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Tue, 28 Jun 2022 18:20:49 -0400 Subject: [PATCH] Fix numa linking We should link against numa without hardcoding the path to it. CMake should determine how to link numa automatically, similar to how rt and pthread is linked. Fixes Change-Id: Ifb9ac30e200c66cbd7f1cf80d25fffef1dcf8d2f Signed-off-by: Jeremy Newton [ROCm/ROCR-Runtime commit: aa25cb1accba432c576162f5d9af227f2246c904] --- projects/rocr-runtime/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/CMakeLists.txt b/projects/rocr-runtime/CMakeLists.txt index 113b83c720..d00248ee83 100644 --- a/projects/rocr-runtime/CMakeLists.txt +++ b/projects/rocr-runtime/CMakeLists.txt @@ -160,7 +160,7 @@ get_os_info() find_package(PkgConfig) # Check for libraries required for building find_library(LIBC NAMES libc.so.6 REQUIRED) -find_library(NUMA NAMES libnuma.so REQUIRED) +find_library(NUMA NAMES numa REQUIRED) message(STATUS "LIBC:" ${LIBC}) message(STATUS "NUMA:" ${NUMA}) @@ -183,7 +183,7 @@ endif() include_directories(${DRM_INCLUDE_DIRS}) target_link_libraries ( ${HSAKMT_TARGET} - PRIVATE ${DRM_LDFLAGS} ${DRM_AMDGPU_LDFLAGS} pthread rt ${LIBC} ${NUMA} + PRIVATE ${DRM_LDFLAGS} ${DRM_AMDGPU_LDFLAGS} pthread rt ${LIBC} numa ) target_compile_options(${HSAKMT_TARGET} PRIVATE ${DRM_CFLAGS} ${HSAKMT_C_FLAGS})