|
[Sponsors] |
January 18, 2017, 15:17 |
How to stop program when using MPI?
|
#1 |
New Member
kang
Join Date: Aug 2014
Posts: 4
Rep Power: 12 |
I am adding MPI package to my Fortran CFD code. I let #0 processor to send data to other processors to do the most of time-consume part and then receive the new data back to continue the following fluid calculations, and then all processors will repeat to call the same subroutine in a loop. The code will continue until there is an error in the #0 processor or the #0 processor finish all loops.
Since the CFD code is big, and there are tons of subroutines may call exit() function to terminate the calculation in #0 processor, it is not possible to add MPI functions in every subroutine to send information to other processors and let them terminate the program. Hence, I would like to ask if there is any function that can detect if the calculation or job in #0 processor is terminated or finished at a certain point, and then I can just send that information to other processors to tell them continue the loops or stop??? Thank you. |
|
Tags |
mpi, stop program |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error using LaunderGibsonRSTM on SGI ALTIX 4700 | jaswi | OpenFOAM | 2 | April 29, 2008 11:54 |
Is Testsuite on the way or not | lakeat | OpenFOAM Installation | 6 | April 28, 2008 12:12 |
How to improve CPU utility when program with mpi? | leaf | Main CFD Forum | 1 | May 8, 2006 10:24 |
how to debugg a MPI program on Linux system | yxq | Main CFD Forum | 1 | June 28, 2004 06:45 |
Free LES program with MPI | Andrei Chernousov | Main CFD Forum | 0 | January 19, 2001 08:13 |