From b9fb0cd80849bfd8e08b2cf6a8d5b66475d347ae Mon Sep 17 00:00:00 2001 From: amdkila <47991923+amdkila@users.noreply.github.com> Date: Thu, 5 Mar 2020 13:36:55 -0700 Subject: [PATCH] set hip::host and hip::device and remove some deprecated targets (#184) --- CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03dc4b2eb5..47bf2eed9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,12 +174,8 @@ if("${HIP_COMPILER}" MATCHES "hcc") endif() endif() -if(TARGET hip::device) - target_link_libraries(rccl PRIVATE hip::device) - target_link_libraries(rccl INTERFACE hip::host) -else() - target_link_libraries(rccl PUBLIC hip::hip_hcc ${hcc_LIBRARIES} numa) -endif() +target_link_libraries(rccl PRIVATE hip::device) +target_link_libraries(rccl INTERFACE hip::host) #Setup librccl.so version rocm_set_soversion(rccl "1.0")