Hari Keselamatan ICT - OWASP Day Kuala Lumpur Malaysia 2011

Notes About OpenMPI

Notes About OpenMPI

I'm exploring OpenMPI after been ask questions about cluster related to MPI.

(1) test your setup with "Hello World" MPI example. among them

This codes from

http://www.cs.indiana.edu/csg/FAQ/Clusters/mpi.html

#include
#include
#include
#define HOST_NAME_MAX 127

int main (int argc, char *argv[])
{
int rank, size;
char hname[HOST_NAME_MAX+1];

MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);

gethostname(hname, HOST_NAME_MAX);
printf("Hello World! from Process %d of %d on %s\n", rank,size,hname);

MPI_Finalize();
}

or

http://www.rit.albany.edu/wiki/Sample_MPI_Fortran_Program

(2) Libraries needed should be copy across clients.

(3) Problem with output not properly display. You can detect it when running on master and client produce different output to the screen.

mpirun -nty C programname

Popular Posts