-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR enables parallel mode Closes rapidsai/graph_dl#328 Authors: - Joseph Nke (https://github.com/jnke2016) - Rick Ratzel (https://github.com/rlratzel) Approvers: - Chuck Hastings (https://github.com/ChuckHastings) - Naim (https://github.com/naimnv) - Brad Rees (https://github.com/BradReesWork) - Rick Ratzel (https://github.com/rlratzel) - Jake Awe (https://github.com/AyodeAwe) URL: #3875
- Loading branch information
Showing
20 changed files
with
1,182 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright (c) 2023, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include <raft/core/handle.hpp> | ||
#include <rmm/device_uvector.hpp> | ||
|
||
#include <optional> | ||
|
||
namespace cugraph { | ||
namespace detail { | ||
|
||
/** | ||
* @brief Gather the span of data from all ranks and broadcast the combined data to all ranks. | ||
* | ||
* @param[in] handle RAFT handle object to encapsulate resources (e.g. CUDA stream, communicator, | ||
* and handles to various CUDA libraries) to run graph algorithms. | ||
* @param[in] comm Raft comms that manages underlying NCCL comms handles across the ranks. | ||
* @param[in] d_input The span of data to perform the 'allgatherv'. | ||
* | ||
* @return A vector containing the combined data of all ranks. | ||
*/ | ||
template <typename T> | ||
rmm::device_uvector<T> device_allgatherv(raft::handle_t const& handle, | ||
raft::comms::comms_t const& comm, | ||
raft::device_span<T const> d_input); | ||
|
||
} // namespace detail | ||
} // namespace cugraph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.