I’ve talked to the folks who wrote the Java bindings. One possibility we 
identified is that there may be an error in your code when you did the 
translation

> My immediate thought is that each process can not receive more elements than 
> it was sent to them. That's the reason of truncation error.
> 
> These are the correct values:
> 
> rank 0 - size2: 2,2,1,1
> rank 1 - size2: 1,1,1,1
> rank 2 - size2: 0,1,1,2
> rank 3 - size2: 2,1,2,1

Can you check your code to see if perhaps the values you are passing didn’t get 
translated correctly from your C++ version to the Java version?



> On Apr 6, 2015, at 5:03 AM, Howard Pritchard <hpprit...@gmail.com> wrote:
> 
> Hello HR,
> 
> It would also be useful to know which java version you are using, as well
> as the configure options used when building open mpi.
> 
> Thanks,
> 
> Howard
> 
> 
> 
> 2015-04-05 19:10 GMT-06:00 Ralph Castain <r...@open-mpi.org 
> <mailto:r...@open-mpi.org>>:
> If not too much trouble, can you extract just the alltoallv portion and 
> provide us with a small reproducer?
> 
> 
>> On Apr 5, 2015, at 12:11 PM, Hamidreza Anvari <hr.anv...@gmail.com 
>> <mailto:hr.anv...@gmail.com>> wrote:
>> 
>> Hello,
>> 
>> I am converting an existing MPI program in C++ to Java using OpenMPI 1.8.4,
>> At some point I have a allToAllv() code which works fine in C++ but receives 
>> error in Java version:
>> 
>> MPI.COMM_WORLD.allToAllv(data, subpartition_size, subpartition_offset, 
>> MPI.INT <http://mpi.int/>,
>> data2,subpartition_size2,subpartition_offset2,MPI.INT <http://mpi.int/>);
>> 
>> Error:
>> *** An error occurred in MPI_Alltoallv
>> *** reported by process [3621322753,9223372036854775811]
>> *** on communicator MPI_COMM_WORLD
>> *** MPI_ERR_TRUNCATE: message truncated
>> *** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
>> ***    and potentially your MPI job)
>> 3 more processes have sent help message help-mpi-errors.txt / 
>> mpi_errors_are_fatal
>> Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error 
>> messages
>> 
>> Here are the values for parameters:
>> 
>> data.length = 5
>> data2.length = 20
>> 
>> ---------- Rank 0 of 4 ----------
>> subpartition_offset:0,2,3,3,
>> subpartition_size:2,1,0,2,
>> subpartition_offset2:0,5,10,15,
>> subpartition_size2:5,5,5,5,
>> ----------
>> ---------- Rank 1 of 4 ----------
>> subpartition_offset:0,2,3,4,
>> subpartition_size:2,1,1,1,
>> subpartition_offset2:0,5,10,15,
>> subpartition_size2:5,5,5,5,
>> ----------
>> ---------- Rank 2 of 4 ----------
>> subpartition_offset:0,1,2,3,
>> subpartition_size:1,1,1,2,
>> subpartition_offset2:0,5,10,15,
>> subpartition_size2:5,5,5,5,
>> ----------
>> ---------- Rank 3 of 4 ----------
>> subpartition_offset:0,1,2,4,
>> subpartition_size:1,1,2,1,
>> subpartition_offset2:0,5,10,15,
>> subpartition_size2:5,5,5,5,
>> ----------
>> 
>> Again, this is a code which works in C++ version.
>> 
>> Any help or advice is greatly appreciated.
>> 
>> Thanks,
>> -- HR
>> _______________________________________________
>> users mailing list
>> us...@open-mpi.org <mailto:us...@open-mpi.org>
>> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users 
>> <http://www.open-mpi.org/mailman/listinfo.cgi/users>
>> Link to this post: 
>> http://www.open-mpi.org/community/lists/users/2015/04/26610.php 
>> <http://www.open-mpi.org/community/lists/users/2015/04/26610.php>
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org <mailto:us...@open-mpi.org>
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users 
> <http://www.open-mpi.org/mailman/listinfo.cgi/users>
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2015/04/26613.php 
> <http://www.open-mpi.org/community/lists/users/2015/04/26613.php>
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2015/04/26615.php

Reply via email to