1

The following error is obtained when I run the code via parallel processing:

Abort(1) on node 25 (rank 25 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 1) - process 25

I use the intel compiler in F90, with the following intel flags while compiling to debug: -g -traceback -check bounds.

If I run the code directly in one processor, then the flags print the issue that is causing my code to terminate. But when I use mpirun or mpiexec to run the same code in parallel, the flags don't print anything. My code terminates itself only at times and after long run times.

I would like to know what can be done to see print the flags output while using mpirun or mpiexec.

I want to print the flag outputs of -g -traceback -check outputs of an error while running the code in mpi.

veryreverie
  • 2,871
  • 2
  • 13
  • 26
aravind
  • 5
  • 1

1 Answers1

1

To debug MPI code, we need to use the below example command:

For Compilation: mpiifort -g -traceback -check bounds test.f90 -o test 
For Execution: mpirun -n 4 -gdb ./test 

The above execution command will lead you to GDB debugging mode where you can start debugging your application.

For more information, refer to the below link: https://www.intel.com/content/www/us/en/develop/documentation/mpi-developer-guide-linux/top/debugging-applications.html

Thanks, Santosh

Santosh-Intel
  • 156
  • 2
  • 6