Skip to content

Commit

Permalink
Merge pull request #57 from LLNL/remove-rsv
Browse files Browse the repository at this point in the history
Remove vector reduce-scatter
  • Loading branch information
ndryden authored Nov 6, 2019
2 parents fe1ebe0 + 6f84c76 commit bbb39a3
Showing 1 changed file with 0 additions and 66 deletions.
66 changes: 0 additions & 66 deletions src/Al.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,41 +291,6 @@ void Reduce_scatter(
Backend::template Reduce_scatter<T>(recvbuf, count, op, comm, algo);
}

/**
* Perform a reduce-scatter.
* @param sendbuf Input data.
* @param recvbuf Output data; should already be allocated.
* @param counts Length of recvbuf.
* @param op The reduction operation to perform.
* @param comm The communicator to reduce/scatter over.
* @param algo Request a particular reduce-scatter algorithm.
*/
template <typename Backend, typename T>
void Reduce_scatter(
const T* sendbuf, T* recvbuf, size_t *counts,
ReductionOperator op, typename Backend::comm_type& comm,
typename Backend::reduce_scatter_algo_type algo =
Backend::reduce_scatter_algo_type::automatic) {
Backend::template Reduce_scatter<T>(sendbuf, recvbuf, counts, op, comm, algo);
}

/**
* Perform an in-place reduce-scatter.
* @param recvbuf Input and output data; input will be overwritten.
* @param counts Length of data to be received.
* @param op The reduction operation to perform.
* @param comm The communicator to reduce/scatter over.
* @param algo Request a particular reduce-scatter algorithm.
*/
template <typename Backend, typename T>
void Reduce_scatter(
T* recvbuf, size_t *counts,
ReductionOperator op, typename Backend::comm_type& comm,
typename Backend::reduce_scatter_algo_type algo =
Backend::reduce_scatter_algo_type::automatic) {
Backend::template Reduce_scatter<T>(recvbuf, counts, op, comm, algo);
}

/**
* @brief Non-blocking version of Reduce_scatter.
*
Expand Down Expand Up @@ -368,37 +333,6 @@ void NonblockingReduce_scatter(
Backend::template NonblockingReduce_scatter<T>(recvbuf, count, op, comm, req, algo);
}

/**
* Non-blocking version of Reduce_scatter.
* This returns immediately (i.e. does only local operations) and starts the
* reduce-scatter asynchronously.
* It is not safe to modify sendbuf or recvbuf until the request indicates that
* the operation has completed.
*/
template <typename Backend, typename T>
void NonblockingReduce_scatter(
const T* sendbuf, T* recvbuf, size_t *counts,
ReductionOperator op,
typename Backend::comm_type& comm,
typename Backend::req_type& req,
typename Backend::reduce_scatter_algo_type algo =
Backend::reduce_scatter_algo_type::automatic) {
Backend::template NonblockingReduce_scatter<T>(
sendbuf, recvbuf, counts, op, comm, req, algo);
}

/** In-place version of NonblockingReduce_scatter; same semantics apply. */
template <typename Backend, typename T>
void NonblockingReduce_scatter(
T* recvbuf, size_t *counts,
ReductionOperator op,
typename Backend::comm_type& comm,
typename Backend::req_type& req,
typename Backend::reduce_scatter_algo_type algo =
Backend::reduce_scatter_algo_type::automatic) {
Backend::template NonblockingReduce_scatter<T>(recvbuf, counts, op, comm, req, algo);
}

/**
* Perform an allgather.
* @param sendbuf Input data.
Expand Down

0 comments on commit bbb39a3

Please sign in to comment.