Re: [OMPI devel] Loading Open MPI from MPJ Express (Java) fails

2014-03-28 Thread Jeff Squyres (jsquyres)
On Mar 26, 2014, at 2:10 PM, Bibrak Qamar wrote: > 1) By heterogeneous do you mean Derived Datatypes? >MPJ Express's buffering layer handles this. It flattens the data into > a ByteBuffer. In this way native device doesn't have to worry about Derived > Datatypes

Re: [OMPI devel] Loading Open MPI from MPJ Express (Java) fails

2014-03-26 Thread Bibrak Qamar
1) By heterogeneous do you mean Derived Datatypes? MPJ Express's buffering layer handles this. It flattens the data into a ByteBuffer. In this way native device doesn't have to worry about Derived Datatypes (those things are handled at top layers). And an interesting thing, intuitively Java

Re: [OMPI devel] Loading Open MPI from MPJ Express (Java) fails

2014-03-24 Thread Jeff Squyres (jsquyres)
On Mar 14, 2014, at 9:29 AM, Bibrak Qamar wrote: > It works for Open MPI but for MPICH3 I have to comment the dlopen. Is there > any way to tell the compiler if its using Open MPI (mpicc) then use dlopen > else keep it commented? Or some thing else? If Open MPI's mpi.h, we

Re: [OMPI devel] Loading Open MPI from MPJ Express (Java) fails

2014-03-14 Thread Bibrak Qamar
And I managed to run Open MPI with MPJ Express. I added the following code and it worked like a charm. *In Java* /* * Static Block for loading the libnativempjdev.so */ static { System.loadLibrary("nativempjdev"); if(!loadGlobalLibraries()) { System.out.println("MPJ

Re: [OMPI devel] Loading Open MPI from MPJ Express (Java) fails

2014-03-12 Thread Ralph Castain
Here's what I had to do to load the library correctly (we were only using ORTE, so substitute "libmpi") - this was called at the beginning of "init": /* first, load the required ORTE library */ #if OPAL_WANT_LIBLTDL lt_dladvise advise; if (lt_dlinit() != 0) { fprintf(stderr,

Re: [OMPI devel] Loading Open MPI from MPJ Express (Java) fails

2014-03-12 Thread Jeff Squyres (jsquyres)
Check out how we did this with the embedded java bindings in Open MPI; see the comment describing exactly this issue starting here: https://svn.open-mpi.org/trac/ompi/browser/trunk/ompi/mpi/java/c/mpi_MPI.c#L79 Feel free to compare MPJ to the OMPI java bindings -- they're shipping in 1.7.4

Re: [OMPI devel] Loading Open MPI from MPJ Express (Java) fails

2014-03-12 Thread Ralph Castain
If you are going to use OMPI via JNI, then you have to load the OMPI library from within your code. This is a little tricky from Java as OMPI by default builds as a set of dynamic libraries, and each component is a dynamic library as well. The solution is to either build OMPI static, or to use

[OMPI devel] Loading Open MPI from MPJ Express (Java) fails

2014-03-12 Thread Bibrak Qamar
Hi all, I am writing a new device for MPJ Express that uses a native MPI library for communication. Its based on JNI wrappers like the original mpiJava. The device works fine with MPICH3 (and MVAPICH2.2). Here is the issue with loading Open MPI 1.7.4 from MPJ Express. I have generated the