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,
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