Re: [OMPI users] problem with exceptions in Java interface

2016-08-29 Thread Graham, Nathaniel Richard
, August 29, 2016 6:16 AM To: Open MPI Users Subject: Re: [OMPI users] problem with exceptions in Java interface Hi Siegmar, I will review PR 1698 and wait some more feedback from the developers, they might have different views than mine. assuming PR 1698 does what you expect, it does not catch all

Re: [OMPI users] problem with exceptions in Java interface

2016-08-29 Thread Gilles Gouaillardet
Hi Siegmar, I will review PR 1698 and wait some more feedback from the developers, they might have different views than mine. assuming PR 1698 does what you expect, it does not catch all user errors. for example, if you MPI_Send a buffer that is too short, the exception might be thrown at any time

Re: [OMPI users] problem with exceptions in Java interface

2016-08-29 Thread Siegmar Gross
Hi Gilles, isn't it possible to pass all exceptions from the Java interface to the calling method? I can live with the current handling of exceptions as well, although some exceptions can be handled within my program and some will break my program even if I want to handle exceptions myself. I und

Re: [OMPI users] problem with exceptions in Java interface

2016-08-29 Thread Gilles Gouaillardet
Siegmar and all, i am puzzled with this error. on one hand, it is caused by an invalid buffer (e.g. buffer size is 1, but user suggests size is 2) so i am fine with current behavior (e.g. java.lang.ArrayIndexOutOfBoundsException is thrown) /* if that was a C program, it would very likely S

[OMPI users] problem with exceptions in Java interface

2016-08-28 Thread Siegmar Gross
Hi, I have installed v1.10.3-31-g35ba6a1, openmpi-v2.0.0-233-gb5f0a4f, and openmpi-dev-4691-g277c319 on my "SUSE Linux Enterprise Server 12 (x86_64)" with Sun C 5.14 beta and gcc-6.1.0. In May I had reported a problem with Java execeptions (PR 1698) which had been solved in June (PR 1803). https

Re: [OMPI users] problem with exceptions in Java interface

2016-05-24 Thread Howard Pritchard
Hi Siegmar, Sorry for the delay, I seem to have missed this one. It looks like there's an error in the way the native methods are processing java exceptions. The code correctly builds up an exception message for cases where MPI 'c' returns non-success but, not if the problem occured in one of th

[OMPI users] problem with exceptions in Java interface

2016-05-20 Thread Siegmar Gross
Hi, I tried MPI.ERRORS_RETURN in a small Java program with Open MPI 1.10.2 and master. I get the expected behaviour, if I use a wrong value for the root process in "bcast". Unfortunately I get an MPI or Java error message if I try to broadcast more data than available. Is this intended or is it a