What is MPI_Finalized?

MPI library

MPI (Message Passing Interface) is a library that enables you to write parallel programs in C or Fortran77. The library uses commonly available operating system services to create parallel processes and exchange information among these processes.

Parallel processing

MPI_Finalized

This function indicates if the MPI_Finalize method was called in a program.

Syntax

int MPI_Finalized(int *flag)

Parameters

  • flag acts as an output parameter that returns true if the MPI_Finalize is called, and returns false otherwise.

Return value

The function returns an error if it is unsuccessful. By default, the error aborts the MPI job.

In case of success, it returns MPI_SUCCESS, the value returned upon successful termination of any MPI routine.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved