Edit

Share via


MPI_Op_create function

Creates a user-defined combination function handle.

Syntax

int MPIAPI MPI_Op_create(
  _In_  MPI_User_function *function,
        int               commute,
  _Out_ MPI_Op            *op
);

Parameters

  • function [in]
    User defined function.

  • commute
    True if commutative, false otherwise.

  • op [out]
    Operation object.

Return value

Returns MPI_SUCCESS on success. Otherwise, the return value is an error code.

In Fortran, the return value is stored in the IERROR parameter.

Fortran

    MPI_OP_CREATE( USER_FN, COMMUTE, OP, IERROR)
        EXTERNAL USER_FN
        LOGICAL COMMUTE
        INTEGER OP, IERROR

Requirements

Product

HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package or HPC Pack 2008 Client Utilities

Header

Mpif.h; Mpi.h

Library

Msmpi.lib

DLL

Msmpi.dll

See also

MPI Collective Functions

MPI_User_function