<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><br> Perhaps someone can provide a solution to what seems to be<br>a problem with installation of mpich.<br><br> I installed ifort (intel) and mpich (via port install), compile<br>a basic test program mpif90 -I/usr/local/include -o tst tst.f <br>(here "I/usr/local/include" is included to find mpif-common.h), <br><br>PROGRAM mpitest<br> integer ierr,my_rank,nm_prcs<br> include "mpif-common.h"<br> call MPI_INIT(ierr) <br> write(*,*)MPI_INTEGER,MPI_REAL,MPI_DOUBLE_PRECISION<br> call MPI_COMM_RANK(MPI_COMM_WORLD,my_rank,ierr)<br> call MPI_COMM_SIZE(MPI_COMM_WORLD,nm_prcs,ierr)<br> write(*,*)'MPI:',my_rank,nm_prcs,ierr<br> call MPI_FINALIZE(ierr)<br>end<br><br>and do mpirun -np 2 ./tst. The result is<br><br> 7 13 17<br> MPI: 0 1 0<br> 7 13 17<br> MPI: 0 1 0<br><br>It shows that nm_prcs = 1 and both processes show the same my_rank = 0,<br>even though ierr =0. <br><br>The initialization in mpirun seem to fail, to assign a proper process count 2.<br><br>Any ideas on what's amiss?<br><br>Many thanks,<br><br>Henry. </div></body>
</html>