Skip to content

Questions concerning MPI.Win #360

Answered by jeffhammond
DirkKuhn asked this question in Q&A
Discussion options

You must be logged in to vote

My recommendation for RMA usage is:

  1. Construct and lock a window
// always do these together
{
MPI_Win_allocate
MPI_Win_lock_all
}
  1. Synchronize
// three types of sync
MPI_Win_flush_local // buffer can be reused - like MPI_Send
MPI_Win_flush       // operation is completed at the target - stronger than MPI_Ssend
MPI_Win_sync        // think memory barrier - before and after load-store access to local window
  1. Destroy window
// always do these together
{
MPI_Win_unlock_all
MPI_Win_free
}

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@dalcinl
Comment options

@jeffhammond
Comment options

@DirkKuhn
Comment options

Comment options

You must be logged in to vote
2 replies
@dalcinl
Comment options

@jeffhammond
Comment options

Comment options

You must be logged in to vote
2 replies
@dalcinl
Comment options

@jeffhammond
Comment options

Comment options

You must be logged in to vote
2 replies
@DirkKuhn
Comment options

@jeffhammond
Comment options

Answer selected by DirkKuhn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants