This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <assert.h> | |
| #include <mpi.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| static int MCS_LOCKRANK = MPI_KEYVAL_INVALID; | |
| enum { nextRank = 0, blocked = 1, lockTail = 2 }; | |
| void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <mpi.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| static int allocate_window(void * baseptr, size_t nbytes, MPI_Win *win); | |
| static int deallocate_window(void * baseptr, MPI_Win *win); | |
| #define COUNT 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <mpi.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #define COUNT 10 | |
| int main(int argc, char** argv) | |
| { | |
| int myrank, nprocs, nprocs_per_node; |