Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

c

What is MPI_Win_flush_local?

Adnan Abbas

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Answers Code

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.

RELATED TAGS

c

CONTRIBUTOR

Adnan Abbas
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Answers Code
Keep Exploring