Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] mpi/java question
From: Ralph Castain (rhc_at_[hidden])
Date: 2013-02-20 09:07:45


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 cleaner version of them in the 1.7.1 release.

Meantime, they will remain available in the nightly developer's snapshot.

Please continue to let us know of any problems you find.

On Feb 19, 2013, at 4:22 PM, Steve Angelovich <SAngelovich_at_[hidden]> wrote:

> 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 communicator MPI COMMUNICATOR 4 DUP FROM 0
> *** MPI_ERR_OP: invalid reduce operation
> *** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
> *** and potentially your MPI job)
> 3 more processes have sent help message help-mpi-errors.txt / mpi_errors_are_fatal
> Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
>
> Looking at ompi/mpi/java/c/mpi_Datatype.c it looks like an MPI_LONG_INT type is being used. It seems this should be an MPI_LONG_LONG. If I change this data type I'm able to do bcast and reduce operations via the java interface. Does this look like a bug or am I missing something else?
>
>
>
> --- openmpi-1.7rc6/ompi/mpi/java/c/mpi_Datatype.c 2013-02-19 15:44:13.299046000 -0600
> +++ openmpi-1.9a1r28069/ompi/mpi/java/c/mpi_Datatype.c 2013-02-17 20:00:14.000000000 -0600
> @@ -60,7 +60,7 @@
>
> MPI_Datatype Dts[] = { MPI_DATATYPE_NULL, MPI_BYTE, MPI_SHORT,
> MPI_SHORT, MPI_BYTE, MPI_INT,
> - MPI_LONG_LONG, MPI_FLOAT, MPI_DOUBLE,
> + MPI_LONG_INT, MPI_FLOAT, MPI_DOUBLE,
> MPI_PACKED, MPI_LB, MPI_UB,
> MPI_BYTE };
>
>
> Thanks,
> Steve
>
> ----------------------------------------------------------------------
> This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel