Hi,
with lam 7.1.1 and intel 8 compilers, I get the below behaviour.
the example works ok with MPICH, SGI and IBM's MPI so I suspect the
reduction of INTEGER8 is not yet implemented or buggy?
Helge
/avle_at_fire: > cat test_reduce_longint.f90
implicit none
include "mpif.h"
integer ierr, myid, numproc
integer, parameter :: long=8, n=6
integer(long) rbuff(n),globrbuff(n)
integer i
call mpi_init(ierr)
call mpi_comm_size(mpi_comm_world, numproc, ierr)
call mpi_comm_rank(mpi_comm_world, myid, ierr)
do i=1,n
rbuff(i) = myid*i
end do
print *,myid,'rbuff=',rbuff
call mpi_allreduce(rbuff,globrbuff,n, MPI_INTEGER8, mpi_sum,mpi_comm_world,ierr)
if(myid==0) print *,'globrbuff=',globrbuff
call mpi_finalize(ierr)
end
/avle_at_fire: > mpif77 test_reduce_longint.f90
/avle_at_fire: > mpirun -np 4 a.out
0 rbuff= 0 0
0 0 0
0
2 rbuff= 2 4
6 8 10
12
3 rbuff= 3 6
9 12 15
18
1 rbuff= 1 2
3 4 5
6
MPI_Allreduce: invalid operation: Invalid argument (rank 0, MPI_COMM_WORLD)
Rank (0, MPI_COMM_WORLD): Call stack within LAM:
Rank (0, MPI_COMM_WORLD): - MPI_Allreduce()
Rank (0, 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 30256 failed on node n0 (127.0.0.1) with exit status 1.
-----------------------------------------------------------------------------
/avle_at_fire: > laminfo
LAM/MPI: 7.1.1
Prefix: /home/parallab/plab/avle/linux/lam-7.1.1
Architecture: i686-pc-linux-gnu
Configured by: avle
Configured on: Wed Oct 6 14:09:12 CEST 2004
Configure host: fire
Memory manager: ptmalloc2
C bindings: yes
C++ bindings: no
Fortran bindings: yes
C compiler: icc
C++ compiler: icc
Fortran compiler: ifort
Fortran symbols: underscore
C profiling: no
C++ profiling: no
Fortran profiling: no
C++ exceptions: no
Thread support: yes
ROMIO support: no
IMPI support: no
Debug support: no
Purify clean: no
SSI boot: globus (API v1.1, Module v0.6)
SSI boot: rsh (API v1.1, Module v1.1)
SSI boot: slurm (API v1.1, Module v1.0)
SSI coll: lam_basic (API v1.1, Module v7.1)
SSI coll: shmem (API v1.1, Module v1.0)
SSI coll: smp (API v1.1, Module v1.2)
SSI rpi: crtcp (API v1.1, Module v1.1)
SSI rpi: lamd (API v1.0, Module v7.1)
SSI rpi: sysv (API v1.0, Module v7.1)
SSI rpi: tcp (API v1.0, Module v7.1)
SSI rpi: usysv (API v1.0, Module v7.1)
SSI cr: self (API v1.0, Module v1.0)
/avle_at_fire: >
/avle_at_fire: > lamnodes
n0 localhost.localdomain:1:origin,this_node
/avle_at_fire: >
|