~ubuntu-branches/ubuntu/hardy/openmpi/hardy-updates

« back to all changes in this revision

Viewing changes to ompi/mpi/f77/cancel_f.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2006-10-15 00:46:11 UTC
  • Revision ID: james.westby@ubuntu.com-20061015004611-uuhxnaxyjmuxfd5h
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
 
3
 *                         University Research and Technology
 
4
 *                         Corporation.  All rights reserved.
 
5
 * Copyright (c) 2004-2005 The University of Tennessee and The University
 
6
 *                         of Tennessee Research Foundation.  All rights
 
7
 *                         reserved.
 
8
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
 
9
 *                         University of Stuttgart.  All rights reserved.
 
10
 * Copyright (c) 2004-2005 The Regents of the University of California.
 
11
 *                         All rights reserved.
 
12
 * $COPYRIGHT$
 
13
 * 
 
14
 * Additional copyrights may follow
 
15
 * 
 
16
 * $HEADER$
 
17
 */
 
18
 
 
19
#include "ompi_config.h"
 
20
 
 
21
#include "ompi/mpi/f77/bindings.h"
 
22
 
 
23
#if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILE_LAYER
 
24
#pragma weak PMPI_CANCEL = mpi_cancel_f
 
25
#pragma weak pmpi_cancel = mpi_cancel_f
 
26
#pragma weak pmpi_cancel_ = mpi_cancel_f
 
27
#pragma weak pmpi_cancel__ = mpi_cancel_f
 
28
#elif OMPI_PROFILE_LAYER
 
29
OMPI_GENERATE_F77_BINDINGS (PMPI_CANCEL,
 
30
                           pmpi_cancel,
 
31
                           pmpi_cancel_,
 
32
                           pmpi_cancel__,
 
33
                           pmpi_cancel_f,
 
34
                           (MPI_Fint *request, MPI_Fint *ierr),
 
35
                           (request, ierr) )
 
36
#endif
 
37
 
 
38
#if OMPI_HAVE_WEAK_SYMBOLS
 
39
#pragma weak MPI_CANCEL = mpi_cancel_f
 
40
#pragma weak mpi_cancel = mpi_cancel_f
 
41
#pragma weak mpi_cancel_ = mpi_cancel_f
 
42
#pragma weak mpi_cancel__ = mpi_cancel_f
 
43
#endif
 
44
 
 
45
#if ! OMPI_HAVE_WEAK_SYMBOLS && ! OMPI_PROFILE_LAYER
 
46
OMPI_GENERATE_F77_BINDINGS (MPI_CANCEL,
 
47
                           mpi_cancel,
 
48
                           mpi_cancel_,
 
49
                           mpi_cancel__,
 
50
                           mpi_cancel_f,
 
51
                           (MPI_Fint *request, MPI_Fint *ierr),
 
52
                           (request, ierr) )
 
53
#endif
 
54
 
 
55
#if OMPI_PROFILE_LAYER && ! OMPI_HAVE_WEAK_SYMBOLS
 
56
#include "ompi/mpi/f77/profile/defines.h"
 
57
#endif
 
58
 
 
59
void mpi_cancel_f(MPI_Fint *request, MPI_Fint *ierr)
 
60
{
 
61
    MPI_Request c_req = MPI_Request_f2c(*request);
 
62
 
 
63
    *ierr = OMPI_INT_2_FINT(MPI_Cancel(&c_req));
 
64
}