Re: [OMPI users] MPI_Reduce problem

2007-07-11 Thread anyi li
Hi Jelena, int* ttt = (int*)malloc(2 * sizeof(int)); ttt[0] = myworldrank + 1; ttt[1] = myworldrank * 2; if(myworldrank == 0) MPI_Reduce(MPI_IN_PLACE, ttt, 2, MPI_INT, MPI_SUM, 0, MPI_COMM_WORLD); //sum all logdetphi from different nodes else MPI_Reduce(ttt, NULL, 2, MPI_INT, MPI_SUM,

[OMPI users] errors in stdin

2007-05-12 Thread anyi li
Hi, I am currently running the code by using mpirun -np 4 abc.exe < test.in>out abc.exe is my executed file, I list my input values in test.in as AAA value1 BBB value2 I run the same code by using intel mpi, it's fine, it can read parameters from stdin. But when I use open mpi, i