Re: [OMPI users] Derived data in Java

2014-10-10 Thread Atsugua Ada
Hello Oscar, your comments and code was very helpful! Thanks a lot for your help. Cheers 2014-10-09 22:42 GMT+01:00 Oscar Vega-Gisbert : > Hello Atsugua, > > You can only send contiguous data, i.e. arrays of basic datatypes (byte, > char, short, boolean, int, long, float and

Re: [OMPI users] Derived data in Java

2014-10-09 Thread Oscar Vega-Gisbert
Hello Atsugua, You can only send contiguous data, i.e. arrays of basic datatypes (byte, char, short, boolean, int, long, float and double) or direct buffers. If you need to send complex data, then you must serialize into an array or a direct buffer. This is made using using the mpi.Struct

[OMPI users] Derived data in Java

2014-10-09 Thread Atsugua Ada
Hello, I am using Open-MPI 1.8.3 for Java. I would like to know how to create a derived datatype that enables the sending of an array of complex data (objects, strings, etc.) to each processor. In fact, I want to create an array of string or objects and sending a part of this array to each