Teuchos: Promote getMpiOpForEReductionType and getMpiErrorString into Teuchos::Details namespace
Created by: mhoemmen
@trilinos/teuchos @trilinos/tpetra Story: #748 (closed) Blocks: #752 (closed)
The following functions live in an anonymous namespace in teuchos/comm/src/Teuchos_CommHelpers.cpp:
MPI_Op getMpiOpForEReductionType (const enum EReductionType reductionType);
std::string getMpiErrorString (const int errCode);
Promote them to the Teuchos::Details namespace and expose them in a header file. This will help us implement Tpetra::Details::iallreduce. We are putting iallreduce in Tpetra for now, because it uses Kokkos::View for input and output buffers.
This does not technically block #752 (closed), because we can always duplicate the code. However, it would be better to expose these functions, in order to avoid code duplication.