Skip to content

Commit 07f8356

Browse files
fix local gpu release static build failure
[rocm-systems] ROCm/rocm-systems#3667 (commit a24bbd7)
1 parent 9085532 commit 07f8356

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,10 +1462,15 @@ file(COPY tools/msccl-unit-test-algorithms DESTINATION ${PROJECT_BINARY_DIR})
14621462
rocm_install(DIRECTORY ${PROJECT_BINARY_DIR}/msccl-algorithms DESTINATION ${CMAKE_INSTALL_DATADIR}/rccl)
14631463
rocm_install(DIRECTORY ${PROJECT_BINARY_DIR}/msccl-unit-test-algorithms DESTINATION ${CMAKE_INSTALL_DATADIR}/rccl)
14641464

1465+
set(RCCL_EXPORT_DEPENDENCIES hip)
1466+
if(RCCL_ROCPROFILER_REGISTER)
1467+
list(APPEND RCCL_EXPORT_DEPENDENCIES rocprofiler-register)
1468+
endif()
1469+
14651470
rocm_export_targets(
14661471
NAMESPACE roc::
14671472
TARGETS rccl
1468-
DEPENDS hip)
1473+
DEPENDS ${RCCL_EXPORT_DEPENDENCIES})
14691474

14701475
## Set package dependencies
14711476
if(BUILD_ADDRESS_SANITIZER)

0 commit comments

Comments
 (0)