My fortran code runs fine when restricted to one node, but when I try to run on multiple nodes, the following error occurs<br><b><br></b><i>* when restricted to one host the code runs perfectly</i><b><br>run line</b><br>mpiexec -hosts n13,n02 -np 4 ./reg <br>
<br><b>Error</b><br><i>Fatal error in PMPI_Gather: Other MPI error, error stack:<br>PMPI_Gather(863)..........: MPI_Gather(sbuf=0x12cc3e0, scount=5120, MPI_DOUBLE_COMPLEX, rbuf=(nil), rcount=5120, MPI_DOUBLE_COMPLEX, root=0, MPI_COMM_WORLD) failed<br>
MPIR_Gather_impl(693).....: <br>MPIR_Gather(655)..........: <br>MPIR_Gather_intra(283)....: <br>MPIC_Send(63).............: <br>MPIDI_EagerContigSend(186): failure occurred while attempting to send an eager message<br>MPIDI_CH3_iStartMsgv(44)..: Communication error with rank 2</i><br>
<br><br>These are all the instances of MPI_GATHER <br><br><i>call MPI_GATHER(xi_dot_matrix_transp,na*n_elements*nsd/numtasks,MPI_DOUBLE_COMPLEX,xi_dot_matrix_gath,&<br> na*n_elements*nsd/numtasks,MPI_DOUBLE_COMPLEX,0,MPI_COMM_WORLD,ierr)<br>
call MPI_GATHER(Matrix_A_hat_3d_transp,5*na*size_matrix*nsd/numtasks,MPI_DOUBLE_COMPLEX,&<br> Matrix_A_hat_3d_gath,5*na*size_matrix*nsd/numtasks,MPI_DOUBLE_COMPLEX,0,MPI_COMM_WORLD,ierr)<br>call MPI_GATHER(JR_matrix_transp,5*na*size_matrix*nsd/numtasks,MPI_INTEGER,JR_matrix_gath,&<br>
5*na*size_matrix*nsd/numtasks,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)<br>call MPI_GATHER(JC_matrix_transp,5*na*size_matrix*nsd/numtasks,MPI_INTEGER,JC_matrix_gath,&<br> 5*na*size_matrix*nsd/numtasks,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)</i><br>
<br>Any help is greatly appreciated.<br><br>Thank you<br>