This is almost certainly a mix-up between mpich and lam files, as
indicated in the archives here:
http://www.lam-mpi.org/MailArchives/lam/2001/09/3306.php
Are you sure you have the details of your mpi installation correct? In
your Bmake.inc:
--snip--
MPIdir = /usr
MPILIBdir = $(MPIdir)/lib64
MPIINCdir = /usr/include
MPILIB = $(MPILIBdir)/libmpi.a
--/snip--
My guess is that there is an mpich mpif.h in /usr/include - you should
change the above so that it finds you LAM installation.
Hugh
On Wed, 30 Mar 2005, Srinivasa Prade Patri wrote:
> Hi!
> I apologize for not being clear in my last mail.BLACS is still not working and the following are the macro settings i have used...
>
> SYSINC =
> /* left blank*/
>
> INTFACE = -Df77IsF2C
> /* when i ran xintface i got the following output
> For this platform, set INTFACE = -Df77IsF2C */
>
> TRANSCOMM = -DUseMpi2
> /* when i ran xtc_CsameF77 i got the following output
> [patri_at_kemc ~]$ mpirun -v -np 2 /home/BLACS/INSTALL/EXE/xtc_CsameF77
> 23986 /home/BLACS/INSTALL/EXE/xtc_CsameF77 running on n0 (o)
> 23987 /home/BLACS/INSTALL/EXE/xtc_CsameF77 running on n0 (o)
> If this routine does not complete successfully,
> Do _NOT_ set TRANSCOMM = -DCSameF77
>
>
> Do _NOT_ set TRANSCOMM = -DCSameF77 */
>
> F77 = mpif77
>
> CC = mpicc
>
> I dont know exactly where iam doing wrong. Iam attaching the
> Bmake.inc with this mail.
>
> The following are the errors When iam executing the test run with
>
> [patri_at_e01 ~]$ mpirun -v -np 2 /home/BLACS/TESTING/EXE/xFbtest_MPI-LINUX-0
>
> 1477 /home/BLACS/TESTING/EXE/xFbtest_MPI-LINUX-0 running on n0 (o)
> 1199 /home/BLACS/TESTING/EXE/xFbtest_MPI-LINUX-0 running on n1
> BLACS WARNING 'No need to set message ID range due to MPI communicator.'
> from {-1,-1}, pnum=0, Contxt=-1, on line 18 of file 'blacs_set_.c'.
>
> BLACS WARNING 'No need to set message ID range due to MPI communicator.'
> from {-1,-1}, pnum=1, Contxt=-1, on line 18 of file 'blacs_set_.c'.
>
> MPI_Comm_group: invalid communicator: Invalid argument (rank 1, MPI_COMM_WORLD)
> Rank (1, MPI_COMM_WORLD): Call stack within LAM:
> Rank (1, MPI_COMM_WORLD): - MPI_Comm_group()
> Rank (1, MPI_COMM_WORLD): - main()
> MPI_Comm_group: invalid communicator: Invalid argument (rank 0, MPI_COMM_WORLD)
> MPI_Comm_group: invalid communicator: Invalid argument (rank 0, MPI_COMM_WORLD)
> -----------------------------------------------------------------------------
> One of the processes started by mpirun has exited with a nonzero exit
> code. This typically indicates that the process finished in error.
> If your process did not finish in error, be sure to include a "return
> 0" or "exit(0)" in your C code before exiting the application.
>
> PID 1477 failed on node n0 (10.5.0.1) with exit status 1.
> -----------------------------------------------------------------------------
>
> Thanking you.
>
> Regards
> Srinivasa Patri
>
>
>
|