Afraid I'll have to let them answer - I can't find the corresponding code.

On Nov 11, 2013, at 6:50 PM, Saliya Ekanayake <> wrote:

Hi Ralph,

In the nightly snapshot that I was using (openmpi-1.9a1r28919) there were two java files ( and inside $OMPI_HOME/ompi/mpi/java/java 

However, these are no longer available in the trunk. I think this is because of the reason Oscar mentioned that now MINLOC and MAXLOC operations call to native ones rather Java implementations.

Thank you,

On Mon, Nov 11, 2013 at 7:38 PM, Ralph Castain <> wrote:
I'm lost - where were you making a change?  I'm unaware of or files in the MPI bindings, so I assume the change was being made to the file?

On Nov 11, 2013, at 12:35 PM, Saliya Ekanayake <> wrote:


I've been using nightly tarball openmpi-1.9a1r28919 with Java binding and it had a bug in its MINLOC implementation ( Essentially, the following line,

out_array [outdisp + 1] = in_array [outdisp + 1] ;

should be changed to 

out_array [outdisp + 1] = in_array [indisp + 1] ;

The same should be done for MAXLOC ( implementation as well. I tested with the change and both MINLOC and MAXLOC worked as expected afterwards. 

However, these files are no longer available in the latest trunk and it seems the API for collective operations have changed as well. Still MINLOC (and MAXLOC) does not work as expected. I've attached a sample code to reproduce the issue and an output from it (for MINLOC). 

I am running on 64bit Ubuntu 12.04.

Any suggestions?

Thank you in advance,

devel mailing list

devel mailing list

Saliya Ekanayake 
Cell 812-391-4914 Home 812-961-6383
devel mailing list