From 1cfca9f8e16e271b261a5299e4fd83578b911658 Mon Sep 17 00:00:00 2001 From: Ranjith Ramakrishnan Date: Fri, 14 Oct 2022 01:32:04 -0700 Subject: [PATCH] Correct include and library path for new directory layout Use actual header files and libraries , rather than using wrapper header files and library softlinks [ROCm/rccl commit: cf4e963aafa8b98881535a21b8c771c22a7895ff] --- projects/rccl/CMakeLists.txt | 2 +- projects/rccl/test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rccl/CMakeLists.txt b/projects/rccl/CMakeLists.txt index 67a20696b6..90bd1b1e65 100644 --- a/projects/rccl/CMakeLists.txt +++ b/projects/rccl/CMakeLists.txt @@ -305,7 +305,7 @@ if("${HIP_COMPILER}" MATCHES "clang") target_compile_options(rccl PRIVATE -fgpu-rdc) endforeach() target_link_libraries(rccl PRIVATE -fgpu-rdc) - target_include_directories(rccl PRIVATE ${ROCM_PATH}/hsa/include) + target_include_directories(rccl PRIVATE ${ROCM_PATH}/include) find_program( hipcc_executable hipcc ) execute_process(COMMAND bash "-c" "${hipcc_executable} -help | grep 'parallel-jobs'" OUTPUT_VARIABLE hipcc_parallel_jobs) if("${hipcc_parallel_jobs}" MATCHES "parallel-jobs") diff --git a/projects/rccl/test/CMakeLists.txt b/projects/rccl/test/CMakeLists.txt index 1195d3ecdf..ad22347799 100644 --- a/projects/rccl/test/CMakeLists.txt +++ b/projects/rccl/test/CMakeLists.txt @@ -101,7 +101,7 @@ if(BUILD_TESTS) # through -l and -L instead of command line input. if(BUILD_STATIC) add_dependencies(UnitTests rccl) - target_link_libraries(UnitTests PRIVATE dl rt numa -lrccl -L${CMAKE_BINARY_DIR} -lrocm_smi64 -L${ROCM_PATH}/rocm_smi/lib) + target_link_libraries(UnitTests PRIVATE dl rt numa -lrccl -L${CMAKE_BINARY_DIR} -lrocm_smi64 -L${ROCM_PATH}/lib -L${ROCM_PATH}/rocm_smi/lib) else() target_link_libraries(UnitTests PRIVATE rccl) endif()