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

[ROCm/rccl commit: b83efe9c5c]
Tá an tiomantas seo le fáil i:
nunnikri údaraithe agus GitHub tiomanta 2022-04-09 07:55:39 -07:00
1 tuismitheoir e61ff3ce37
tiomantas be9374aa34
1 comhad athraithe
+4 -3
+4 -3
Féach ar an gComhad
@@ -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")