Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions xprof/sync_daemon_mpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "mpi.h"
#include <cstdlib>
#include <cstring>
#include <string>

using namespace daemon_proto;

Expand Down Expand Up @@ -125,6 +126,10 @@ int main(int argc, char **argv) {
}
const int fd = atoi(argv[1]);

// WA for MPI_Session bug when running concurrently with MPI apps.
if (const char *ns = getenv("PMIX_NAMESPACE"))
setenv("PMIX_NAMESPACE", (std::string(ns) + "_thapi_sync_daemon").c_str(), 1);

CHECK_MPI(MPIX_Init_Session(&lib_shandle, &MPI_COMM_WORLD_THAPI));
CHECK_MPI(MPI_Comm_split_type(MPI_COMM_WORLD_THAPI, MPI_COMM_TYPE_SHARED, 0, MPI_INFO_NULL,
&MPI_COMM_NODE));
Expand Down
Loading