From b83efe9c5cb6370c6e843b272f315b03f9f53bc6 Mon Sep 17 00:00:00 2001 From: nunnikri <71024015+nunnikri@users.noreply.github.com> Date: Sat, 9 Apr 2022 07:55:39 -0700 Subject: [PATCH] Installing rccl.h wrapper to /opt/rocm-xxx/include path (#532) * Fixing the broken library soft link * Installing rccl.h wrapper to /opt/rocm-xxx/include path. This missing wrapper was causing compilation errors with pytorch. Fixing it --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfd6f06077..945641c65b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,13 +287,14 @@ rocm_export_targets(NAMESPACE if(BUILD_FILE_REORG_BACKWARD_COMPATIBILITY) #Create wrapper files rocm_wrap_header_dir( "${PROJECT_BINARY_DIR}/include/rccl" - PATTERNS "*.h" - rccl.h + PATTERNS "rccl.h" GUARDS SYMLINK WRAPPER - WRAPPER_LOCATIONS rccl ) + WRAPPER_LOCATIONS include rccl/include) #install the wrapper header file to package rocm_install( FILES "${PROJECT_BINARY_DIR}/rccl/include/rccl.h" DESTINATION "./rccl/include/" ) + rocm_install( FILES "${PROJECT_BINARY_DIR}/include/rccl.h" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/" ) endif() rocm_package_add_dependencies(DEPENDS "hip-rocclr >= 3.5.0" "rocm-smi-lib >= 4.0.0")