Skip to content

Latest commit

 

History

History
93 lines (73 loc) · 1.87 KB

mpi-op-create-function.md

File metadata and controls

93 lines (73 loc) · 1.87 KB
title TOCTitle ms:assetid ms:mtpsurl ms:contentKeyID ms.date mtps_version f1_keywords dev_langs description
MPI_Op_create function
MPI_Op_create function
5b636d07-7c9c-4164-8a08-d3a9e37cfe41
59360974
03/28/2018
v=VS.85
mpi/MPI_OP_CREATE
MPI_OP_CREATE
mpif/MPI_Op_create
C++
C
Learn how to create a user-defined combination function handle with MPI_Op_create on Microsoft's official site. Perfect for HPC Pack users.

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