Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] How to use non-primitive types with Java binding
From: Saliya Ekanayake (esaliya_at_[hidden])
Date: 2014-01-16 19:09:12


Thank you Oscar. I was using an earlier nightly tarball and in it there was
MPI.OBJECT datatype, which I could use with any serializable complex
object. It seems this is no longer supported as per your answer or did I
get it wrong?

Thank you,
Saliya

On Thu, Jan 16, 2014 at 5:22 PM, Oscar Vega-Gisbert <ovega_at_[hidden]>wrote:

> Hi,
>
> If you are talking about types as ArrayList<Double>, it is not possible,
> because the Double (D uppercase) is an object which encapsulates a double.
> And the elements of an ArrayList are references (pointers) to Java objects.
>
> You can use complex types but you must create them with the Datatype
> methods (createVector, createStruct,...). And the buffers that hold the
> data must be arrays of a primitive type or direct buffers.
>
> Regards,
> Oscar
>
>
> Quoting Saliya Ekanayake <esaliya_at_[hidden]>:
>
> Hi,
>>
>> Is it possible to use non-primitive types with MPI operations in OpenMPI's
>> Java binding? At the moment in the trunk I only see Datatypes for
>> primitive
>> kinds.
>>
>> Thank you,
>> Saliya
>>
>> --
>> Saliya Ekanayake esaliya_at_[hidden]
>>
>>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>

-- 
Saliya Ekanayake esaliya_at_[hidden]
Cell 812-391-4914 Home 812-961-6383
http://saliya.org