It is necessary to manually set a breakpoint in the function
. Immediately after reporting an error on
this function is called, so the stack backtrace directly leads to the source code location of the MPI call where the error was detected. In addition to the printed error report, you can also look at the parameters of the
which contain the same information. It is also possible to look at the actual MPI parameters with the debugger because the initial layer of MPI wrappers in
is always compiled with debug information. This can be useful if the application itself lacks debug information or calls MPI with a complex expression or function call as parameter for which the result is not immediately obvious.