Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocamlmpi reduce_int_array, showstopper?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-09-06 (10:52)
From: Sylvain Le Gall <sylvain@l...>
Subject: Re: ocamlmpi reduce_int_array, showstopper?
On 04-09-2010, Mike Lin <mikelin@MIT.EDU> wrote:
> Hi Sylvain, Xavier,
> I have encountered what seems to be a serious problem with
> reduce_int_array in ocamlmpi, namely, in a trivial test case it
> successfully returns incorrect results. This is my test code


> [mikelin@honest3 ~/]$ uname -a
> Linux 2.6.18-92.1.10.el5_lustre.1.6.6smp-perfctr
> #7 SMP Tue Nov 10 10:41:00 CST 2009 x86_64 x86_64 x86_64 GNU/Linux
> [mikelin@honest3 ~/]$ which mpiexec
> /usr/local/mvapich2-1.2-intel-ofed-
> see also:
> I know the ocamlmpi code has been stable for some time, but I wonder
> if it's been tested on x86_64? Let me know if you're able to reproduce
> this.

I can confirm the bug. I have commited a fix in the svn. Though, I am
not an MPI expert.

I think the problem was related to a double in-place re-encoding of
integer in the array. I'll wait for Xavier review to do a release.

Sylvain Le Gall