Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] How to use non-primitive types with Java binding
From: Oscar Vega-Gisbert (ovega_at_[hidden])
Date: 2014-01-16 17:22:26


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.