DUE Next Saturday, Dec 7, 1159pm
Please email your solutions to hanjunk@cs.princeton.edu, a
Put "COS597C:" in the subject line
Implementation:
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
int main( int argc, char *
{
int errs = 0;
int rank, size;
MPI_Init( &argc, &argv );
MPI_Comm_rank( MPI_COMM_WORLD , &rank );
MPI_Comm_size( MPI_COMM_WORLD , &size );
// Implement me
MPI_Finalize();
return errs;
}
Changing the number of threads, measure
its speedups on different amount of calculation, 1000, 10000, and
100000.
You can execute your program with the following command.