|
Bugzilla – Full Text Bug Listing |
| Summary: | Call MPI_Finalize to exit MPI environment | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | John Abraham <john.abraham.in> |
| Component: | mpi | Assignee: | John Abraham <john.abraham.in> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | jpelkey, ns-bugs |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | patch | ||
Created attachment 1101 [details]
patch
Running MPI examples yielded identical results
I just ran tests with this applied on ferrari. I got similar results to https://www.nsnam.org/bugzilla/attachment.cgi?id=1099 Closing bug. Changeset 90a20d9a0fee Thanks John. |
We could have a static function void MpiInterface::Disable() { int flag = 0 ; MPI_Initialized(&flag); if(flag) { MPI_Finalize(); } } to be called by the code that invokes MpiInterface::Enable(...) so that we terminate the MPI execution environment correctly. Without proper termination we would get messages like below from openmpi -------------------------------------------------------------------------- mpirun has exited due to process rank 1 with PID 12720 on node ubuntu exiting without calling "finalize". This may have caused other processes in the application to be terminated by signals sent by mpirun (as reported here). --------------------------------------------------------------------------