Tim Siwula
Tim Siwula

Reputation: 983

Does MPI_Finalize have to be called inside the main function?

Just curious if I could call it within another function call.

Upvotes: 1

Views: 347

Answers (1)

Jeff Hammond
Jeff Hammond

Reputation: 5642

No. You can call MPI_Finalize inside of any function. The only restrictions pertain to calling from threads. See the MPI standard for details.

Upvotes: 4

Related Questions