Skip to content

Commit

Permalink
disable windows for mpi handshake because MPI_Comm_create_group does …
Browse files Browse the repository at this point in the history
…not work on windows
  • Loading branch information
JasonRuonanWang committed Aug 4, 2020
1 parent 905358a commit c058098
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/adios2/helper/adiosMpiHandshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace adios2
namespace helper
{

#ifndef _WIN32
void HandshakeComm(const std::string &filename, const char mode,
const int timeoutSeconds, MPI_Comm localComm,
MPI_Group &streamGroup, MPI_Group &writerGroup,
Expand All @@ -40,6 +41,7 @@ void HandshakeComm(const std::string &filename, const char mode,
MPI_Comm_create_group(MPI_COMM_WORLD, writerGroup, 0, &writerComm);
MPI_Comm_create_group(MPI_COMM_WORLD, readerGroup, 0, &readerComm);
}
#endif

const std::vector<std::vector<int>> HandshakeRank(const std::string &filename,
const char mode,
Expand Down
2 changes: 2 additions & 0 deletions source/adios2/helper/adiosMpiHandshake.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ const std::vector<std::vector<int>> HandshakeRank(const std::string &filename,
const int timeoutSeconds,
MPI_Comm localComm);

#ifndef _WIN32
void HandshakeComm(const std::string &filename, const char mode,
const int timeoutSeconds, MPI_Comm localComm,
MPI_Group &streamGroup, MPI_Group &writerGroup,
MPI_Group &readerGroup, MPI_Comm &streamComm,
MPI_Comm &writerComm, MPI_Comm &readerComm);
#endif

} // end namespace helper
} // end namespace adios2
Expand Down

0 comments on commit c058098

Please sign in to comment.