diff --git a/projects/rccl-tests/src/CMakeLists.txt b/projects/rccl-tests/src/CMakeLists.txt index ec96b65412..387bccfc97 100644 --- a/projects/rccl-tests/src/CMakeLists.txt +++ b/projects/rccl-tests/src/CMakeLists.txt @@ -127,7 +127,7 @@ add_custom_target(git_version_check add_custom_target(hipify DEPENDS ${HIP_COMMON_SOURCES}) add_library(rccl_common OBJECT ${HIP_COMMON_SOURCES}) add_dependencies(rccl_common hipify git_version_check) -target_link_libraries(rccl_common roc::rccl hip::device Threads::Threads) +target_link_libraries(rccl_common roc::rccl hip::device Threads::Threads dl) if(USE_MPI) target_link_libraries(rccl_common MPI::MPI_CXX) endif() diff --git a/projects/rccl-tests/src/Makefile b/projects/rccl-tests/src/Makefile index 225bba53b7..fcc020f7c2 100644 --- a/projects/rccl-tests/src/Makefile +++ b/projects/rccl-tests/src/Makefile @@ -129,7 +129,7 @@ HIPCUFLAGS += -DMPI_SUPPORT -I${MPI_HOME}/include -I${MPI_HOME}/mpich/include -I HIPLDFLAGS += -L${MPI_HOME}/lib -L${MPI_HOME}/mpich/lib -lmpich endif -LIBRARIES += rccl +LIBRARIES += rccl dl HIPLDFLAGS += $(LIBRARIES:%=-l%) DST_DIR := $(BUILDDIR)