SWDEV-262734: Fix for Numa policy bug
Change-Id: I4be62c1fc45a59d09aa043af1c998b9e308da604
[ROCm/clr commit: 673f483879]
This commit is contained in:
committed by
Sarbojit Sarkar
parent
6c80b85c95
commit
cd827fad4d
@@ -227,11 +227,8 @@ if (UNIX)
|
|||||||
target_link_libraries(amdrocclr_static PUBLIC ${LIBRT})
|
target_link_libraries(amdrocclr_static PUBLIC ${LIBRT})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_library(LIBNUMA numa)
|
|
||||||
if (LIBNUMA)
|
if (LIBNUMA)
|
||||||
target_compile_definitions(amdrocclr_static PUBLIC ROCCLR_SUPPORT_NUMA_POLICY)
|
|
||||||
target_link_libraries(amdrocclr_static PUBLIC ${LIBNUMA})
|
target_link_libraries(amdrocclr_static PUBLIC ${LIBNUMA})
|
||||||
message(STATUS "Found: ${LIBNUMA}")
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
#comment out as it's not available in cmake 3.5
|
#comment out as it's not available in cmake 3.5
|
||||||
|
|||||||
@@ -47,4 +47,12 @@ if(USE_COMGR_LIBRARY)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
find_library(LIBNUMA numa)
|
||||||
|
if (LIBNUMA)
|
||||||
|
target_compile_definitions(oclrocm PRIVATE ROCCLR_SUPPORT_NUMA_POLICY)
|
||||||
|
message(STATUS "Found: ${LIBNUMA}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
set_target_properties(oclrocm PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
set_target_properties(oclrocm PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|||||||
Reference in New Issue
Block a user