What is MPI_Win_flush_local?

MPI library

MPI, short for Message Passing Interface, is a library that allows you to write parallel programs in Fortran77 or C. The library uses common operating system services to exchange information among the parallel processes it creates.

Parallel processing

MPI_Win_flush_local

This method locally completes all outstanding RMA (Remote Memory Access) operations started by the calling process to the target process specified by rank on the specified window.

Syntax

int MPI_Win_flush_local(int rank, MPI_Win win)

Parameters

  • rank is the rank of the window.

  • win is the window object used by processes to perform RMA operations.

Return value

  • If unsuccessful, the function returns an error. The error, by default, aborts the MPI job.

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

  • In case an invalid window object is provided in the function’s argument, MPI_ERR_WIN is returned.

  • MPI_ERR_RANK is returned if the source or destination rank is invalid. Rank must be between one and size of communicator minus one.

  • MPI_ERR_OTHER is returned there are any other errors. MPI_Error_string can be used to get more information about this error code.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved