IBM Books

MPI Subroutine Reference

MPI_OP_FREE, MPI_Op_free

Purpose

Marks a user-defined reduction operation for deallocation.

C synopsis

#include <mpi.h>
int MPI_Op_free(MPI_Op *op);

C++ synopsis

#include mpi.h
void MPI::Op::Free();

FORTRAN synopsis

include 'mpif.h' or use mpi
MPI_OP_FREE(INTEGER OP,INTEGER IERROR)

Parameters

op
is the reduction operation (handle) (INOUT)

IERROR
is the FORTRAN return code. It is always the last argument.

Description

This subroutine marks a reduction operation for deallocation, and set op to MPI_OP_NULL. Actual deallocation occurs when the operation's reference count is zero.

Errors

Invalid operation

Predefined operation

MPI not initialized

MPI already finalized

Related information

MPI_OP_CREATE


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]