Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2013-01-11 Thread Jeff Squyres (jsquyres)
On Jan 7, 2013, at 10:09 AM, Siegmar Gross wrote: > I manually applied your patch to openmpi-1.9a1r27668, because > "patch -i resized.patch" couldn't find ompi/mpi/java/c/mpijava.exp > (it seems that this file isn't available in any tar ball). Huh. It's in our SVN, but I see you're right -- it

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2013-01-07 Thread Siegmar Gross
Hi > >> I think the real shortcoming is that there is no Datatype.Resized > >> function. That can be fixed. > > > > Are you sure? That would at least solve one problem. > > > Here's a first cut at a patch. > > I don't know if this is fully correct; I don't quite understand > yet how baseSize

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-24 Thread Jeff Squyres
On Dec 19, 2012, at 9:22 AM, Siegmar Gross wrote: >> I think the real shortcoming is that there is no Datatype.Resized >> function. That can be fixed. > > Are you sure? That would at least solve one problem. Here's a first cut at a patch. I don't know if this is fully correct; I don't quite u

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-21 Thread Siegmar Gross
Hi > (taking the liberty of moving this thread to the devel list...) > > On Dec 19, 2012, at 9:22 AM, Siegmar Gross wrote: > > >> I think the real shortcoming is that there is no Datatype.Resized > >> function. That can be fixed. > > > > Are you sure? That would at least solve one problem. >

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-19 Thread Siegmar Gross
Hi I shortend this email so that you get earlier to my comments. > > In my opinion Datatype.Vector must set the size of the > > base datatype as extent of the vector and not the true extent, because > > MPI-Java doesn't provide a function to resize a datatype. > > No, I think Datatype.Vector is

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-18 Thread Jeff Squyres
On Dec 18, 2012, at 12:05 PM, Siegmar Gross wrote: > I know how to use MPI_Scatter or MPI_Scatterv in C, because I have > written some small and working example programs myself in the past. > My first Java program with MPI_Scatter was ColumnScatterMain.java > which I had sent to the list early Oct

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-18 Thread Siegmar Gross
Hi > >> 1. The datatypes passed to Scatter are not valid MPI datatypes > >> (MPI.OBJECT). You need to construct a datatype that is specific to the > >> !MyData class, just like you would in C/C++. I think that this is the > >> first error that you are seeing (i.e., that OMPI is trying to treat

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-17 Thread Jeff Squyres
On Dec 15, 2012, at 10:46 AM, Siegmar Gross wrote: > If I misunderstood the mpiJava specification and I must create a special > MPI object from my Java object: How do I create it? Thank you very much > for any help in advance. You sent me a source code listing off-list, but I want to reply on-li

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-17 Thread Jeff Squyres
On Dec 15, 2012, at 10:46 AM, Siegmar Gross wrote: > "Broadcast" works if I have only a root process and it fails when I have > one more process. I'm sorry; I didn't clarify this error. In a broadcast of only 1 process, it's effectively a no-op. So it doesn't need to do anything to the buffer

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-17 Thread Jeff Squyres
On Dec 15, 2012, at 10:46 AM, Siegmar Gross wrote: >> 1. The datatypes passed to Scatter are not valid MPI datatypes >> (MPI.OBJECT). You need to construct a datatype that is specific to the >> !MyData class, just like you would in C/C++. I think that this is the >> first error that you are see

Re: [OMPI users] [Open MPI] #3351: JAVA scatter error

2012-12-15 Thread Siegmar Gross
Hello, > #3351: JAVA scatter error > -+- > Reporter: rhc | Owner: jsquyres > Type: defect| Status: closed > Priority: critical | Milestone: Open MPI 1.7.1 > Version: trunk | Resolution: invalid > Keywords: