Intel® oneAPI HPC Toolkit
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
2019 Discussions

Deadlock with MPI_Win_fence going from Intel MPI to


We encountered a problem when migrating a code from Intel MPI to The code in question is a complex simulation that first reads global input state from disk into several parts in memory and then accesses this memory in a hard to predict fashion to create a new decomposition. We use active target RMA for this (on machines which support this like BG/Q we also use passive target) since a rank might need data from the part that is at another rank to form its halo. Since the mesh we work on stores edges, cell centers and vertices in different data structures, we have 3 corresponding MPI_Win_create calls per mesh. For local refinement the number of these meshes can be increased as needed, the problem I'm about to describe happens with 3 nested meshes.

With Intel MPI the program locks up in this code, with some ranks being stuck in one MPI_Win_fence for one of the RMA windows and others being stuck in the next MPI_Win_fence (about 30 code lines later) for another RMA window. Both windows belong to the same mesh but that should not matter to MPI.

The code in question works with Intel MPI and Open MPI 1.6.5.

Is this a known problem? How small would a demonstration code have to be?

0 Kudos
1 Reply

For a reproducer code, it is best if we can get it as small as possible, so as to more easily narrow down on the root cause of the problem.  But if it only shows in the larger code, that's what we work with.

Have you tried running with the message checking library in Intel® Trace Analyzer and Collector?  Since this is a large code, I would recommend running this on as small of a dataset as possible.

I'm not immediately able to find any known issues with this.