[BUILD] Add link to libdl for RCCL-Tests builds (#153)

This commit is contained in:
Nilesh M Negi
2025-10-05 04:12:05 -05:00
committed by GitHub
parent a4943c512e
commit d0a99b1847
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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)