LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Sugimoto, Kazutaka (kasugimo_at_[hidden])
Date: 2001-12-27 01:30:27


Hi, all!

I am trying to do MPI_REDUCE(3f) on the IMPI. But MPI_REDUCE(3f) can not execute well.
Can not this function work well on IMPI?
I've tried on LAM 6.5.6 too, But even simple IMPI program can not execute.
 

$ cat a.f
      PROGRAM MAIN

      include 'mpif.h'

      INTEGER NPROCS,MYRANK,IERROR
      INTEGER ITMP,IRSLT

      CALL MPI_INIT(IERROR)

      CALL MPI_COMM_RANK(MPI_COMM_WORLD,MYRANK,IERROR)

      PRINT *,'MYRANK= ',MYRANK

      ITMP=MYRANK

      CALL MPI_REDUCE(ITMP,IRSLT,1,MPI_INTEGER,MPI_MAX,0,
     & MPI_COMM_WORLD,IERROR)

      PRINT *,'IRSLT= ',IRSLT

      CALL MPI_FINALIZE(IERROR)

      STOP
      END

$ uname -a
Linux ddv1 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
$ rpm -qa |grep lam
lam-6.4a9-sysv.1
$ mpirun -client 0 10.123.111.6:31880 -np 1 a.out
Remote IMPI host (my index 0) has a different index number for itself (1): Invalid argument
MPI_Recv: process in local group is dead (rank 0, comm 9)
Rank (0, MPI_COMM_WORLD): Call stack within LAM:
Rank (0, MPI_COMM_WORLD): - MPI_Recv()
Rank (0, MPI_COMM_WORLD): - MPI_Init()
Rank (0, MPI_COMM_WORLD): - main()
$ mpirun -client 1 10.123.111.6:31880 -np 1 a.out
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
Error on IMPI host 0. Closing connection (good luck).
 MYRANK= 1
 IRSLT= 0
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
LAM IMPI client: Unexpected truncation of socket read (IMPI_Packet header)
socket write: Bad file descriptor
LAM IMPI host was not able to send an entire IMPI_Packet down a socket to host 0
LAM IMPI client and host aborting...
MPI_Wait: process in local group is dead (rank 1, MPI_COMM_WORLD)
Rank (1, MPI_COMM_WORLD): Call stack within LAM:
Rank (1, MPI_COMM_WORLD): - MPI_Wait()
Rank (1, MPI_COMM_WORLD): - MPI_Recv()
Rank (1, MPI_COMM_WORLD): - IMPI_Barrier()
Rank (1, MPI_COMM_WORLD): - MPI_Barrier()
Rank (1, MPI_COMM_WORLD): - MPI_Finalize()
Rank (1, MPI_COMM_WORLD): - main()
-----------------------------------------------------------------------------

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 20546 failed on node n0 with exit status 1.
-----------------------------------------------------------------------------

================================
Sugimoto, Kazutaka
mailto:kasugimo_at_[hidden]

_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/