MPI_Win_Lock(3)
π« NAME π«
MPI_Win_Lock β bestie, this one starts an RMA access epoch. that's the whole vibe. β¨
π SYNOPSIS π
#include <mpi.h>
int MPI_Win_lock(int lock_type, int rank, int assert, MPI_Win win)
πΈ INPUT PARAMETERS πΈ
okay so here's what you're handing it, no cap:
lock_typeβ this one's gotta be eitherMPI_LOCK_EXCLUSIVEorMPI_LOCK_SHARED(it's the state, periodt)rankβ the rank of the locked window, and it's a nonnegative integer bestie, keep it cute πassertβ your program assertion, an integer, lowkey just say what you meanwinβ the window object, a handle π«Ά
π NOTES π
not me having to tell you this but... this function is currently not implemented in LAM/MPI. fr fr. it's gonna return an MPI_ERR_OTHER run time error. that's it, that's the tea. π
π¦ NOTES FOR FORTRAN π¦
bestie the Fortran lore is real, so listen up:
- every single MPI routine in Fortran (except for
MPI_WTIMEandMPI_WTICK) has an extra argument calledierrtacked onto the end of the argument list.ierris an integer and it means the exact same thing as the return value of the routine in C. iconic. - in Fortran, MPI routines are subroutines, and you invoke them with the
callstatement. that's the rule. β¨ - also!! all MPI objects (like
MPI_Datatype,MPI_Comm) are of typeINTEGERin Fortran. no exceptions, iykyk. π
π LOCATION π
wlock.c β that's where she lives, go say hi π
and that's a wrap, bestie!! this page is from LAM/MPI 7.1.4, dated 6/24/2006 β oldie but a goodie, we stan a vintage manpage ππ slay, go forth and lock those windows (except, y'know, not in LAM/MPI, see above π) πβ
π¦ where this page comes from
- debian bookworm: lam-mpidoc 7.1.4-7
- debian trixie: lam-mpidoc 7.1.4-7.2
- ubuntu jammy: lam-mpidoc 7.1.4-7
- ubuntu noble: lam-mpidoc 7.1.4-7.1build2
- ubuntu questing: lam-mpidoc 7.1.4-8
- ubuntu resolute: lam-mpidoc 7.1.4-8build1
- ubuntu stonking: lam-mpidoc 7.1.4-8build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms