Re: [OMPI devel] mpi/java question

2013-02-20 Thread Jeff Squyres (jsquyres)
I committed a fix to the trunk to use the fixed size datatypes. I don't know offhand if the reduction type you need is defined on 64 bit types...? On Feb 20, 2013, at 5:41 PM, Steve Angelovich wrote: > Sorry I lost track of all the comments in the thread. Does this mean it > is fixed or wil

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Steve Angelovich
Sorry I lost track of all the comments in the thread. Does this mean it is fixed or will be fixed? Thanks, Steve On 02/20/2013 02:15 PM, Jeff Squyres (jsquyres) wrote: > I didn't misspeak in my email. :-) > > That being said: > > 1. If the Java sizes are fixed, great. It should make writing c

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Jeff Squyres (jsquyres)
I didn't misspeak in my email. :-) That being said: 1. If the Java sizes are fixed, great. It should make writing configury to find matching C types easier (because we know what the Java sizes are). 2. George raises a good point: we support the MPI_INTx_T datatypes now, which probably obviat

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Ralph Castain
Might be just fine - need to see how many of the types have issues, how best to correct them On Feb 20, 2013, at 12:32 PM, George Bosilca wrote: > That is wrong with MPI_INT64_T ? (MPI 3.0 standard page 26.) > > George. > > On Feb 20, 2013, at 21:12 , Ralph Castain wrote: > >> >> On Feb 2

Re: [OMPI devel] mpi/java question

2013-02-20 Thread George Bosilca
That is wrong with MPI_INT64_T ? (MPI 3.0 standard page 26.) George. On Feb 20, 2013, at 21:12 , Ralph Castain wrote: > > On Feb 20, 2013, at 12:08 PM, Dmitri Gribenko wrote: > >> On Wed, Feb 20, 2013 at 10:05 PM, Ralph Castain wrote: >>> >>> On Feb 20, 2013, at 11:39 AM, Dmitri Gribenko

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Ralph Castain
On Feb 20, 2013, at 12:08 PM, Dmitri Gribenko wrote: > On Wed, Feb 20, 2013 at 10:05 PM, Ralph Castain wrote: >> >> On Feb 20, 2013, at 11:39 AM, Dmitri Gribenko wrote: >> >>> On Wed, Feb 20, 2013 at 9:34 PM, Jeff Squyres (jsquyres) >>> wrote: If someone could write some generic java c

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Dmitri Gribenko
On Wed, Feb 20, 2013 at 10:05 PM, Ralph Castain wrote: > > On Feb 20, 2013, at 11:39 AM, Dmitri Gribenko wrote: > >> On Wed, Feb 20, 2013 at 9:34 PM, Jeff Squyres (jsquyres) >> wrote: >>> If someone could write some generic java code to figure out the size of a >>> java type (and either printf

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Ralph Castain
On Feb 20, 2013, at 11:39 AM, Dmitri Gribenko wrote: > On Wed, Feb 20, 2013 at 9:34 PM, Jeff Squyres (jsquyres) > wrote: >> If someone could write some generic java code to figure out the size of a >> java type (and either printf it out, or write it to a file, or otherwise be >> able to give

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Dmitri Gribenko
On Wed, Feb 20, 2013 at 9:34 PM, Jeff Squyres (jsquyres) wrote: > If someone could write some generic java code to figure out the size of a > java type (and either printf it out, or write it to a file, or otherwise be > able to give that value to a shell script), that would be a good start. No

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Jeff Squyres (jsquyres)
On Feb 20, 2013, at 12:37 PM, Ralph Castain wrote: >> In Java, a long is always 64 bits. In C and Objective-C, a long might be 64 >> bits, or it might be 32 bits, or (in less common cases) it might be >> something else entirely; the C standard doesn't specify an exact bit width. > > So we may

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Ralph Castain
Here's what I found: > In Java, a long is always 64 bits. In C and Objective-C, a long might be 64 > bits, or it might be 32 bits, or (in less common cases) it might be something > else entirely; the C standard doesn't specify an exact bit width. So we may need a configure test to map the Jav

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Jeff Squyres (jsquyres)
I guess the question is whether a java "long" is equivalent to a C "long", "long long", or "long int"... Do you know? (I'm not much of a Java guy) On Feb 19, 2013, at 7:22 PM, Steve Angelovich wrote: > All, > > We ran into a problem using openmpi from java with a Java data type of long >

Re: [OMPI devel] mpi/java question

2013-02-20 Thread Ralph Castain
Definitely looks like a bug to me. We removed the Java bindings from the upcoming 1.7.0 release because of receiving problem reports, and several interested people are helping to review and revise the bindings now (interested parties are welcome to help). We hope to include an updated and cleane

[OMPI devel] mpi/java question

2013-02-19 Thread Steve Angelovich
All, We ran into a problem using openmpi from java with a Java data type of long when doing bcast and reduce operations. *** An error occurred in MPI_Allreduce: the reduction operation MPI_MIN is not defined on the MPI_LONG_INT datatype *** reported by process [211105480705,0] *** on communica