[NCCL] Fix usage, add wrapper and install Find module file (#22031)

* fix-find_ncclConfig.cmake

* update version

* change port-version

* update version

* update version

* update version

* update port version

* update version

Co-authored-by: Frank-Xie <Frank-Xie@Email.com>
This commit is contained in:
Frank 2022-01-13 03:32:50 +08:00 committed by GitHub
parent c7ea63043c
commit d7e919b978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,3 @@
vcpkg_fail_port_install(ON_TARGET "Windows" "OSX" ON_ARCH "x86" "arm")
# Find NCCL. We can use FindNCCL directly since it doesn't call any functions
# that are disallowed in CMake script mode
@ -16,4 +15,6 @@ else()
message(FATAL_ERROR "Please install NCCL using your system package manager (the same way you installed CUDA). For example: apt install libnccl2 libnccl-dev.")
endif()
file(INSTALL "${CURRENT_PORT_DIR}/FindNCCL.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
configure_file("${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})

View File

@ -1,7 +1,7 @@
{
"name": "nccl",
"version-string": "2.4.6",
"port-version": 1,
"version": "2.4.6",
"port-version": 2,
"description": "Optimized primitives for collective multi-GPU communication.",
"supports": "linux & x64",
"dependencies": [

View File

@ -4678,7 +4678,7 @@
},
"nccl": {
"baseline": "2.4.6",
"port-version": 1
"port-version": 2
},
"ncurses": {
"baseline": "6.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6f07fdf26f53fd4974ad4cb6d6df430dc28e52aa",
"version": "2.4.6",
"port-version": 2
},
{
"git-tree": "c9b172ef032bf322539dab71b19f5dc27b679fd0",
"version-string": "2.4.6",