Skip to content

Instantly share code, notes, and snippets.

@rocarvaj
rocarvaj / mpiParallelSearch.c
Created April 27, 2012 21:26
MPI_ISend example, parallel search on arrays
/* array_search1.c - array searching example where each process is looking for a specific
number and notifies the other processes when it finds it. Uses a non-blocking receive.
*/
#include <mpi.h>
#include <stdio.h>
main(int argc, char* argv[]) {
int rank,size;
MPI_Status status;
MPI_Request request;