# Stall in some multi-node parallel calculations

**URL:** <https://community.freefem.org/t/stall-in-some-multi-node-parallel-calculations/1143>\
**Category:** General Discussion\
**Created:** [August 6, 2021, 11:36am UTC](https://community.freefem.org/t/stall-in-some-multi-node-parallel-calculations/1143 "2021-08-06T11:36:47Z")\
**Posts on this page:** 4\
**Page:** 5

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [August 13, 2021, 3:07pm UTC](https://community.freefem.org/t/stall-in-some-multi-node-parallel-calculations/1143/81 "2021-08-13T15:07:52Z")

</div>

So, if I understand correctly, now everything is running to completion? The latest patch is not very clean, it’s more of a hack to bypass the wrong behavior that you get on your system. But if it gets your jobs running, at least that is that.

---

<div class="post-metadata">

**Author:** ![etj](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@etj](https://community.freefem.org/u/etj)\
**Post date:** [August 13, 2021, 3:10pm UTC](https://community.freefem.org/t/stall-in-some-multi-node-parallel-calculations/1143/82 "2021-08-13T15:10:49Z")

</div>

> [@prj](#):
>
> So, if I understand correctly, now everything is running to completion?

Exactly. Thank you. I will test other codes and other numbers of nodes and processes, and let you know.

---

<div class="post-metadata">

**Author:** ![etj](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@etj](https://community.freefem.org/u/etj)\
**Post date:** [August 14, 2021, 12:30pm UTC](https://community.freefem.org/t/stall-in-some-multi-node-parallel-calculations/1143/83 "2021-08-14T12:30:34Z")

</div>

It seems to work well with various codes and numbers of nodes and processes. Thank you again.

So, what was the problem exactly?

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [August 14, 2021, 1:42pm UTC](https://community.freefem.org/t/stall-in-some-multi-node-parallel-calculations/1143/84 "2021-08-14T13:42:32Z")

</div>

> It seems to work well with various codes and numbers of nodes and processes.

Again, the patch I sent is kind of nasty. It will likely not work with meshes with very badly-shaped elements.

> So, what was the problem exactly?

Your MPI implementation is having some difficulties with `MPI_Waitany` and/or `MPI_Waitall` + `MPI_Status` queries. I’d advise trying to start with a fresh installation using Intel compilers and IntelMPI, which do not have such issues (that’s what I’m using daily). If it still fails with those, there may be something wrong with your interconnect, but it is not possible for me to solve such issues remotely.

[Previous page](https://community.freefem.org/t/stall-in-some-multi-node-parallel-calculations/1143.md?page=4)
