Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

c

What is MPI_Win_post?

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.

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_post

This method starts an RMA (Remote Memory Access) exposure epoch. To understand what an RMA exposure epoch is, we first need to understand active target communication.

Active target communication is when data is transferred from the memory of one process to the memory of another, and both processes are explicitly involved in the communication.

In active target communication, accessing a target window by RMA operations is restricted within an exposure epoch. This epoch is started and completed by RMA synchronization calls. MPI_Win_post is one such synchronization call.

Syntax

int MPI_Win_post(MPI_Group group, int assert, MPI_Win win)

Parameters

  • group is the set of origin processes for the epoch.

  • assert is used to optimize the function call; zero may be used as a default. Other assertion values include MPI_MODE_NOCHECK, MPI_MODE_NOSTORE, and MPI_MODE_NOPUT.

  • win is the window object. These objects are used to expose memory regions with which MPI processes can interact one-sidedly.

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, the value returned upon successful termination of any MPI routine.

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.

Keep Exploring