CollectiveTypes
#include <popops/CollectiveTypes.hpp>
Supported types for replicated and non-replicated collectives.
-
namespace popops
Common functions, such as elementwise and reductions.
Enums
-
enum CollectiveOperator
Supported collective operators.
Values:
-
enumerator ADD
-
enumerator MEAN
-
enumerator MUL
-
enumerator MIN
-
enumerator MAX
-
enumerator LOGICAL_AND
Only supports boolean operands.
-
enumerator LOGICAL_OR
Only supports boolean operands.
-
enumerator SQUARE_ADD
Squares each element before applying ADD reduction.
-
enumerator LOCAL
Do nothing and keep the local value.
-
enumerator ADD
Functions
-
std::istream &operator>>(std::istream &is, CollectiveOperator &op)
Parse token from input stream
is
toop
.Valid input values are the stringified enumerations, for example “ADD” or “MUL”.
- Returns
The original input stream.
-
std::ostream &operator<<(std::ostream &os, const CollectiveOperator &op)
Write
op
to output streamos
.The value written is the stringified enumeration, for example “ADD” or “MUL”.
- Returns
The original output stream.
-
CollectiveOperator operationToCollectiveOperator(const Operation &col)
Convert from popops::Operation to popops::CollectiveOperator.
-
enum CollectiveOperator