Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions projects/rccl/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,7 @@ if(BUILD_TESTS)
GrowMPITests.cpp
GinNcclTimeoutMPITests.cpp
InspectorPromP2pMPITests.cpp
ProfilerKernelChMPITests.cpp
SymmetricKernelMPITests.cpp
SymmetricWindowMPITests.cpp
DeviceApiMPITests.cpp
Expand Down Expand Up @@ -1070,6 +1071,24 @@ if(BUILD_TESTS)

list(APPEND RCCL_TEST_EXECUTABLES rccl-UnitTestsMPI)

# Recorder profiler plugin for ProfilerKernelChMPITests. Unlike
# rccl-test-profiler-stub it is a working profiler: it records what RCCL
# delivers so the test can check it. It builds against the standalone headers
# an external plugin ships with rather than RCCL's own, and it lands and
# installs beside the test binary, which is where the test looks for it.
add_library(rccl-test-profiler-kch-recorder SHARED plugin/profiler_kernelch_recorder.cpp)
target_include_directories(rccl-test-profiler-kch-recorder PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../plugins/profiler/example/nccl
${CMAKE_CURRENT_SOURCE_DIR}/plugin)
set_target_properties(rccl-test-profiler-kch-recorder PROPERTIES
CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN ON)
add_dependencies(rccl-UnitTestsMPI rccl-test-profiler-kch-recorder)
target_compile_definitions(rccl-UnitTestsMPI PRIVATE
RCCL_TEST_KCH_RECORDER_NAME="$<TARGET_FILE_NAME:rccl-test-profiler-kch-recorder>")
install(TARGETS rccl-test-profiler-kch-recorder
LIBRARY DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT tests)

# Loadable GIN plugin for GinConnectLeakMPITest, built and installed beside the test binary.
add_library(rccl-test-gin-fault-plugin SHARED plugin/gin_fault_plugin.cpp)
target_include_directories(rccl-test-gin-fault-plugin PRIVATE ${RCCL_COMMON_INCLUDE_DIRS})
Expand Down
Loading
Loading