import MPI.*;
public class MPIJava {
/**
* @param args
*/
public static void main(String[] args) {
MPI.Init(args);
int rank = MPI.COMM_WORLD.Rank();
int size = MPI.COMM_WORLD.Size();
System.out.println("Hi, I am process "+rank+" ");
MPI.Finalize();
}
}
aW1wb3J0IE1QSS4qOwpwdWJsaWMgY2xhc3MgTVBJSmF2YSB7CiAvKioKKiBAcGFyYW0gYXJncwoqLwpwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7IAogICAgTVBJLkluaXQoYXJncyk7CgppbnQgcmFuayA9IE1QSS5DT01NX1dPUkxELlJhbmsoKTsKCmludCBzaXplID0gTVBJLkNPTU1fV09STEQuU2l6ZSgpOwoKU3lzdGVtLm91dC5wcmludGxuKCJIaSwgSSBhbSBwcm9jZXNzICIrcmFuaysiICIpOwoKICAgTVBJLkZpbmFsaXplKCk7CgogIH0KfQ==