Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.09 KB

MPI_Op_commutative.3.rst

File metadata and controls

71 lines (43 loc) · 1.09 KB

MPI_Op_commutative

:ref:`MPI_Op_commutative` |mdash| Query of commutativity of reduction operation.

SYNTAX

C Syntax

#include <mpi.h>

int MPI_Op_commutative(MPI_Op op, int *commute)

Fortran Syntax

USE MPI
! or the older form: INCLUDE 'mpif.h'
MPI_OP_COMMUTATIVE(OP, COMMUTE, IERROR)
     LOGICAL COMMUTE
     INTEGER OP, IERROR

Fortran 2008 Syntax

USE mpi_f08
MPI_Op_commutative(op, commute, ierror)
     TYPE(MPI_Op), INTENT(IN) :: op
     INTEGER, INTENT(OUT) :: commute
     INTEGER, OPTIONAL, INTENT(OUT) :: ierror

INPUT PARAMETER

  • op: Operation (handle).

OUTPUT PARAMETERS

  • commute: True if op is commutative, false otherwise (logical).
  • ierror: Fortran only: Error status (integer).

DESCRIPTION

Reduction operations can be queried for their commutativity.

ERRORS

.. seealso::
   * :ref:`MPI_Op_create`