Skip to content

Commit d0a99b1

Browse files
authored
[BUILD] Add link to libdl for RCCL-Tests builds (ROCm#153)
1 parent a4943c5 commit d0a99b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ add_custom_target(git_version_check
127127
add_custom_target(hipify DEPENDS ${HIP_COMMON_SOURCES})
128128
add_library(rccl_common OBJECT ${HIP_COMMON_SOURCES})
129129
add_dependencies(rccl_common hipify git_version_check)
130-
target_link_libraries(rccl_common roc::rccl hip::device Threads::Threads)
130+
target_link_libraries(rccl_common roc::rccl hip::device Threads::Threads dl)
131131
if(USE_MPI)
132132
target_link_libraries(rccl_common MPI::MPI_CXX)
133133
endif()

‎src/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ HIPCUFLAGS += -DMPI_SUPPORT -I${MPI_HOME}/include -I${MPI_HOME}/mpich/include -I
129129
HIPLDFLAGS += -L${MPI_HOME}/lib -L${MPI_HOME}/mpich/lib -lmpich
130130
endif
131131

132-
LIBRARIES += rccl
132+
LIBRARIES += rccl dl
133133
HIPLDFLAGS += $(LIBRARIES:%=-l%)
134134

135135
DST_DIR := $(BUILDDIR)

0 commit comments

Comments
 (0)