Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit bb7efe1

Browse files
authored
no MPI service thread (#51)
* updating imex sha fix-infer-cores * do not start Mediator (MPI-recv) thread unless in c/w mode
1 parent 5c971f9 commit bb7efe1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

imex_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ff9d13d5e71213a99a9a436895072b853236c040
1+
b2e3a332f12d2db4691a69774b42835dfab44da0

src/MPIMediator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ MPIMediator::MPIMediator() : _listener(nullptr) {
3131
_comm = c->comm();
3232
int sz;
3333
MPI_Comm_size(_comm, &sz);
34-
if (sz > 1)
34+
if (sz > 1 && getTransceiver()->is_cw())
3535
_listener = new std::thread(&MPIMediator::listen, this);
3636
}
3737

@@ -45,7 +45,7 @@ MPIMediator::~MPIMediator() {
4545
to_workers(nullptr);
4646
MPI_Barrier(_comm);
4747
if (!getTransceiver()->is_cw() || rank == 0)
48-
send_to_workers(nullptr, true, _comm);
48+
defer(nullptr); // send_to_workers(nullptr, true, _comm);
4949
if (_listener) {
5050
_listener->join();
5151
delete _listener;

0 commit comments

Comments
 (0)