[BUILD] Add link to libdl for RCCL-Tests builds (#153)
[ROCm/rccl-tests commit: d0a99b1847]
This commit is contained in:
@@ -127,7 +127,7 @@ add_custom_target(git_version_check
|
|||||||
add_custom_target(hipify DEPENDS ${HIP_COMMON_SOURCES})
|
add_custom_target(hipify DEPENDS ${HIP_COMMON_SOURCES})
|
||||||
add_library(rccl_common OBJECT ${HIP_COMMON_SOURCES})
|
add_library(rccl_common OBJECT ${HIP_COMMON_SOURCES})
|
||||||
add_dependencies(rccl_common hipify git_version_check)
|
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)
|
if(USE_MPI)
|
||||||
target_link_libraries(rccl_common MPI::MPI_CXX)
|
target_link_libraries(rccl_common MPI::MPI_CXX)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -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
|
HIPLDFLAGS += -L${MPI_HOME}/lib -L${MPI_HOME}/mpich/lib -lmpich
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBRARIES += rccl
|
LIBRARIES += rccl dl
|
||||||
HIPLDFLAGS += $(LIBRARIES:%=-l%)
|
HIPLDFLAGS += $(LIBRARIES:%=-l%)
|
||||||
|
|
||||||
DST_DIR := $(BUILDDIR)
|
DST_DIR := $(BUILDDIR)
|
||||||
|
|||||||
Reference in New Issue
Block a user