Skip to content

Instantly share code, notes, and snippets.

View rkowalewski's full-sized avatar

Roger Kowalewski rkowalewski

View GitHub Profile
#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
#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
#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;