Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] MPI Java bindings compile errors and missing datatype
From: Christoffer Hamberg (christoffer.hamberg_at_[hidden])
Date: 2013-11-15 09:04:30


Hi,

I'm currently trying to get the included java bindings running but as I've
mentioned in a previous post I've had some problems.

./configure --prefix=/opt/openmpi-1.9-java --without-openib --enable-static
--with-threads=posix --enable-mpi-thread-multiple --enable-mpi-java
--with-jdk-bindir=/usr/lib/jvm/java-7-openjdk-armhf/bin
--with-jdk-headers=/usr/lib/jvm/java-7-openjdk-armhf/include

The configure succeeds without any errors, but the build breaks in
ompi/mpi/java/c since the compiler doesn't include the jdk-headers. I fixed
the corresponding Makefile to include it and it works.

The second error I get is in ompi/tools/wrappers/Makefile where it sets:
am__append_1 = mpijavac.1
am__append_2 = mpijavac.1

shouldn't this be mpijavac.pl instead?

I changed it to .pl and it seems to build with any more errors, "mpirun
java" works fine for some simple Java tests.

After this I tried some other tests using the MPI.OBJECT datatype, just to
discover that it wasn't supported. I saw that it was included in mpiJava
1.2 and the current mpiJava in OMPI is 1.1(?). I guess the java bindings
aren't that prioritized?

Do you have any advice for me to do, should I try to update the bindings or
do you have any other recommendations how to get it running?

Regards,
Christoffer Hamberg