<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Dear MPI forum,</p>
<p>I posted a technical question on StackOverflow and was advised to
ask it in this mailing list.</p>
<p>The original post is here:
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/70697604/is-mpi-igather-thread-safe">https://stackoverflow.com/questions/70697604/is-mpi-igather-thread-safe</a></p>
<p>In a nutshell, I am trying to call independent MPI_Igathers in
an OpenMP-parallel for-loop (after testing for
MPI_THREAD_MULTIPLE),</p>
<p>and am getting a deadlock apparently caused by mismatched sends
and receives, even in a very much stripped down example.</p>
<p>Any help on wether my code is not standard-conforming would be
greatly appreciated. I attached two versions of the code for
convenience, one of them is also in the StackOverflow post. The
_v2 version does not deadlock but produces incorrect results when
run with multiple MPI processes and multiple OpenMP thread per
process.<br>
</p>
<p>Thanks and best wishes,</p>
<p>Jonas<br>
</p>
<div class="moz-signature">-- <br>
<b>J. Thies</b><br>
<small>
Assistant Professor<br>
<br>
TU Delft<br>
Faculty Electrical Engineering, Mathematics and Computer Science<br>
Institute of Applied Mathematics and High Performance Computing
Center<br>
Mekelweg 4<br>
2628 CD Delft<br>
<br>
T +31 15 27 XXXX<br>
<b><a class="moz-txt-link-abbreviated" href="mailto:J.Thies@tudelft.nl">J.Thies@tudelft.nl</a></b><br>
</small></div>
</body>
</html>