Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gloo] New Port #15219

Merged
merged 6 commits into from
Dec 28, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions ports/gloo/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebookincubator/gloo
REF 1da21174054eaabbbd189b7f657ea24842d821e2
SHA512 ebd8369e413aee739a3928f8e6738c15708f009e0cd5a3763b8cadbe6f6d0a9d758585a7a2b0f7dd6d39a12882ff2f9497ab2d4edcebd4eb2a7237ab857f317e
HEAD_REF master
)

# Determine which backend to build via specified feature
vcpkg_check_features(
OUT_FEATURE_OPTIONS GLOO_FEATURE_OPTIONS
FEATURES
mpi USE_MPI
redis USE_REDIS
)

if ("cuda" IN_LIST FEATURES)
list(APPEND GLOO_FEATURE_OPTIONS "-DUSE_CUDA=1 -DUSE_NCCL=1")
jacobkahn marked this conversation as resolved.
Show resolved Hide resolved
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS ${GLOO_FEATURE_OPTIONS}
)
vcpkg_install_cmake()

vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/Gloo)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
28 changes: 28 additions & 0 deletions ports/gloo/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "gloo",
"version-string": "20201203",
"description": "Collective communications library with various primitives for multi-machine training.",
"homepage": "https://github.com/facebookincubator/gloo",
"supports": "x64 & linux",
"features": {
jacobkahn marked this conversation as resolved.
Show resolved Hide resolved
"cuda": {
"description": "for CUDA aware algorithms",
"dependencies": [
"cuda",
"nccl"
]
},
"mpi": {
"description": "for coordinating machine rendezvous through MPI",
"dependencies": [
"openmpi"
]
},
"redis": {
"description": "for coordinating machine rendezvous through Redis",
"dependencies": [
"hiredis"
]
}
}
}