[MPICH] Re: ( 瑞星提示-此邮件可能是垃圾邮件 )RE: [MPICH] about MPI_Reduce

Thomas Moschny moschny at ipd.uni-karlsruhe.de
Mon Oct 17 14:51:51 CDT 2005


On Monday 17 October 2005 19:27, you wrote:
> I don't know what's going on. It seems that the reduction function never
> know the structure of the derived datatype. Moreover, the entry of the
> data sent to the reduction function is not valid.

The attached small test program produces the expected output with mpich-1.2.6:
$ mpicc -Wall -W -Wno-unused -O2 -g -std=c99 reduce.c -o reduce
$ mpirun -np 10 ./reduce
10 0 30 0 50 0 70 0

BTW: Identical output is produced when I compile and run the program with
LAM 7.1.1.

Regards,
Thomas



-------------- next part --------------
A non-text attachment was scrubbed...
Name: reduce.c
Type: text/x-csrc
Size: 1200 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20051017/794a688b/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20051017/794a688b/attachment.pgp>


More information about the mpich-discuss mailing list