Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

A query on mpirun -gdb issue

Logan5
Novice
1,104 Views
Hi folks. Can you help me. I am trying to debug a fortran program, example.f, as follows

mpirun -gdb -n 2 -f hostile ./example.exe

When I do so, it just executes, without waiting for me to set a breakpoint, or execute the gdb "run" command.

I am using the 2021 compiler and I know there is a later version. But I did make sure that mpif90, which I used to compile, and mpirun, which I used to run, are consistent.

Is this a question that folks on the Intel community could address. Or is it an MPICH question? Any thoughts on what may causing the issue, of immediate executio without waiting for a "run" command?
0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
1,087 Views

I think this is better asked in Intel® oneAPI HPC Toolkit - Intel Community which deals with MPI issues. I don't see a connection to the Intel compiler.  But are you using any Intel tools? If you're using MPICH you're not using Intel MPI, and I was under the impression that "mpif90" invoked gfortran by default - that "mpifort" was used to use the Intel compiler. I may be mistaken here.

View solution in original post

4 Replies
Steve_Lionel
Honored Contributor III
1,088 Views

I think this is better asked in Intel® oneAPI HPC Toolkit - Intel Community which deals with MPI issues. I don't see a connection to the Intel compiler.  But are you using any Intel tools? If you're using MPICH you're not using Intel MPI, and I was under the impression that "mpif90" invoked gfortran by default - that "mpifort" was used to use the Intel compiler. I may be mistaken here.

Logan5
Novice
990 Views
Yes I am using Ifort. We are not using the default but use an environment variable to make it use ifort. The legacy compilation scripts use mpif90 which is still accepted, although i personally use mpiifort.
I will go to that community you suggested. But can you tell me, what is the easiest way to identify if I am using MPI or MPICH? Do you know?
0 Kudos
Barbara_P_Intel
Moderator
1,079 Views

Close, @Steve_Lionel, it's "mpiifort" to compile using Intel MPI with ifort.

 

Logan5
Novice
992 Views
Yes. I use mpiifort myself. But the compilation scripts all still use mpif90, which is still accepted.
0 Kudos
Reply