Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] querying Op commutativity for predefined reduction operations.
From: Lisandro Dalcin (dalcinl_at_[hidden])
Date: 2014-04-21 06:05:32


IMHO, MPI_Op_commutative() should not fail for predefined reduced operations.

[dalcinl_at_kw2060 openmpi]$ ompi_info --version
Open MPI v1.8

http://www.open-mpi.org/community/help/
[dalcinl_at_kw2060 openmpi]$ cat op_commutative.c
#include <mpi.h>
int main(int argc, char *argv[])
{
  int flag;
  MPI_Init(&argc,&argv);
  MPI_Op_commutative(MPI_SUM,&flag);
  MPI_Finalize();
  return 0;
}
[dalcinl_at_kw2060 openmpi]$ mpicc op_commutative.c
[dalcinl_at_kw2060 openmpi]$ ./a.out
[kw2060:19303] *** An error occurred in MPI_Op_commutative
[kw2060:19303] *** reported by process [140737157201921,140239272148992]
[kw2060:19303] *** on communicator MPI_COMM_WORLD
[kw2060:19303] *** MPI_ERR_OP: invalid reduce operation
[kw2060:19303] *** MPI_ERRORS_ARE_FATAL (processes in this
communicator will now abort,
[kw2060:19303] *** and potentially your MPI job)

-- 
Lisandro Dalcin
---------------
CIMEC (UNL/CONICET)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1016)
Tel/Fax: +54-342-4511169