Blame src/mpi/romio/mpi-io/fortran/write_allbf.c

Packit Service c5cf8c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
Packit Service c5cf8c
/*
Packit Service c5cf8c
 *
Packit Service c5cf8c
 *   Copyright (C) 1997 University of Chicago.
Packit Service c5cf8c
 *   See COPYRIGHT notice in top-level directory.
Packit Service c5cf8c
 */
Packit Service c5cf8c
Packit Service c5cf8c
#include "adio.h"
Packit Service c5cf8c
#include "mpio.h"
Packit Service c5cf8c
Packit Service c5cf8c
Packit Service c5cf8c
#if defined(MPIO_BUILD_PROFILING) || defined(HAVE_WEAK_SYMBOLS)
Packit Service c5cf8c
Packit Service c5cf8c
#if defined(HAVE_WEAK_SYMBOLS)
Packit Service c5cf8c
#if defined(HAVE_PRAGMA_WEAK)
Packit Service c5cf8c
#if defined(FORTRANCAPS)
Packit Service c5cf8c
extern FORTRAN_API void FORT_CALL MPI_FILE_WRITE_ALL_BEGIN(MPI_Fint *, void *, MPI_Fint *,
Packit Service c5cf8c
                                                           MPI_Fint *, MPI_Fint *);
Packit Service c5cf8c
#pragma weak MPI_FILE_WRITE_ALL_BEGIN = PMPI_FILE_WRITE_ALL_BEGIN
Packit Service c5cf8c
#elif defined(FORTRANDOUBLEUNDERSCORE)
Packit Service c5cf8c
extern FORTRAN_API void FORT_CALL mpi_file_write_all_begin__(MPI_Fint *, void *, MPI_Fint *,
Packit Service c5cf8c
                                                             MPI_Fint *, MPI_Fint *);
Packit Service c5cf8c
#pragma weak mpi_file_write_all_begin__ = pmpi_file_write_all_begin__
Packit Service c5cf8c
#elif !defined(FORTRANUNDERSCORE)
Packit Service c5cf8c
extern FORTRAN_API void FORT_CALL mpi_file_write_all_begin(MPI_Fint *, void *, MPI_Fint *,
Packit Service c5cf8c
                                                           MPI_Fint *, MPI_Fint *);
Packit Service c5cf8c
#pragma weak mpi_file_write_all_begin = pmpi_file_write_all_begin
Packit Service c5cf8c
#else
Packit Service c5cf8c
extern FORTRAN_API void FORT_CALL mpi_file_write_all_begin_(MPI_Fint *, void *, MPI_Fint *,
Packit Service c5cf8c
                                                            MPI_Fint *, MPI_Fint *);
Packit Service c5cf8c
#pragma weak mpi_file_write_all_begin_ = pmpi_file_write_all_begin_
Packit Service c5cf8c
#endif
Packit Service c5cf8c
Packit Service c5cf8c
#elif defined(HAVE_PRAGMA_HP_SEC_DEF)
Packit Service c5cf8c
#if defined(FORTRANCAPS)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF PMPI_FILE_WRITE_ALL_BEGIN MPI_FILE_WRITE_ALL_BEGIN
Packit Service c5cf8c
#elif defined(FORTRANDOUBLEUNDERSCORE)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF pmpi_file_write_all_begin__ mpi_file_write_all_begin__
Packit Service c5cf8c
#elif !defined(FORTRANUNDERSCORE)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF pmpi_file_write_all_begin mpi_file_write_all_begin
Packit Service c5cf8c
#else
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF pmpi_file_write_all_begin_ mpi_file_write_all_begin_
Packit Service c5cf8c
#endif
Packit Service c5cf8c
Packit Service c5cf8c
#elif defined(HAVE_PRAGMA_CRI_DUP)
Packit Service c5cf8c
#if defined(FORTRANCAPS)
Packit Service c5cf8c
#pragma _CRI duplicate MPI_FILE_WRITE_ALL_BEGIN as PMPI_FILE_WRITE_ALL_BEGIN
Packit Service c5cf8c
#elif defined(FORTRANDOUBLEUNDERSCORE)
Packit Service c5cf8c
#pragma _CRI duplicate mpi_file_write_all_begin__ as pmpi_file_write_all_begin__
Packit Service c5cf8c
#elif !defined(FORTRANUNDERSCORE)
Packit Service c5cf8c
#pragma _CRI duplicate mpi_file_write_all_begin as pmpi_file_write_all_begin
Packit Service c5cf8c
#else
Packit Service c5cf8c
#pragma _CRI duplicate mpi_file_write_all_begin_ as pmpi_file_write_all_begin_
Packit Service c5cf8c
#endif
Packit Service c5cf8c
Packit Service c5cf8c
/* end of weak pragmas */
Packit Service c5cf8c
#endif
Packit Service c5cf8c
/* Include mapping from MPI->PMPI */
Packit Service c5cf8c
#include "mpioprof.h"
Packit Service c5cf8c
#endif
Packit Service c5cf8c
Packit Service c5cf8c
#ifdef FORTRANCAPS
Packit Service c5cf8c
#define mpi_file_write_all_begin_ PMPI_FILE_WRITE_ALL_BEGIN
Packit Service c5cf8c
#elif defined(FORTRANDOUBLEUNDERSCORE)
Packit Service c5cf8c
#define mpi_file_write_all_begin_ pmpi_file_write_all_begin__
Packit Service c5cf8c
#elif !defined(FORTRANUNDERSCORE)
Packit Service c5cf8c
#if defined(HPUX) || defined(SPPUX)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF pmpi_file_write_all_begin pmpi_file_write_all_begin_
Packit Service c5cf8c
#endif
Packit Service c5cf8c
#define mpi_file_write_all_begin_ pmpi_file_write_all_begin
Packit Service c5cf8c
#else
Packit Service c5cf8c
#if defined(HPUX) || defined(SPPUX)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF pmpi_file_write_all_begin_ pmpi_file_write_all_begin
Packit Service c5cf8c
#endif
Packit Service c5cf8c
#define mpi_file_write_all_begin_ pmpi_file_write_all_begin_
Packit Service c5cf8c
#endif
Packit Service c5cf8c
Packit Service c5cf8c
#else
Packit Service c5cf8c
Packit Service c5cf8c
#ifdef FORTRANCAPS
Packit Service c5cf8c
#define mpi_file_write_all_begin_ MPI_FILE_WRITE_ALL_BEGIN
Packit Service c5cf8c
#elif defined(FORTRANDOUBLEUNDERSCORE)
Packit Service c5cf8c
#define mpi_file_write_all_begin_ mpi_file_write_all_begin__
Packit Service c5cf8c
#elif !defined(FORTRANUNDERSCORE)
Packit Service c5cf8c
#if defined(HPUX) || defined(SPPUX)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF mpi_file_write_all_begin mpi_file_write_all_begin_
Packit Service c5cf8c
#endif
Packit Service c5cf8c
#define mpi_file_write_all_begin_ mpi_file_write_all_begin
Packit Service c5cf8c
#else
Packit Service c5cf8c
#if defined(HPUX) || defined(SPPUX)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF mpi_file_write_all_begin_ mpi_file_write_all_begin
Packit Service c5cf8c
#endif
Packit Service c5cf8c
#endif
Packit Service c5cf8c
#endif
Packit Service c5cf8c
Packit Service c5cf8c
#if defined(MPIHP)
Packit Service c5cf8c
/* Prototype to keep compiler happy */
Packit Service c5cf8c
void mpi_file_write_all_begin_(MPI_Fint * fh, void *buf, MPI_Fint * count,
Packit Service c5cf8c
                               MPI_Fint * datatype, MPI_Fint * ierr);
Packit Service c5cf8c
void mpi_file_write_all_begin_(MPI_Fint * fh, void *buf, MPI_Fint * count,
Packit Service c5cf8c
                               MPI_Fint * datatype, MPI_Fint * ierr)
Packit Service c5cf8c
{
Packit Service c5cf8c
    MPI_File fh_c;
Packit Service c5cf8c
    MPI_Datatype datatype_c;
Packit Service c5cf8c
Packit Service c5cf8c
    fh_c = MPI_File_f2c(*fh);
Packit Service c5cf8c
    datatype_c = MPI_Type_f2c(*datatype);
Packit Service c5cf8c
Packit Service c5cf8c
    *ierr = MPI_File_write_all_begin(fh_c, buf, *count, datatype_c);
Packit Service c5cf8c
}
Packit Service c5cf8c
#else
Packit Service c5cf8c
/* Prototype to keep compiler happy */
Packit Service c5cf8c
FORTRAN_API void FORT_CALL mpi_file_write_all_begin_(MPI_Fint * fh, void *buf, MPI_Fint * count,
Packit Service c5cf8c
                                                     MPI_Fint * datatype, MPI_Fint * ierr);
Packit Service c5cf8c
FORTRAN_API void FORT_CALL mpi_file_write_all_begin_(MPI_Fint * fh, void *buf, MPI_Fint * count,
Packit Service c5cf8c
                                                     MPI_Fint * datatype, MPI_Fint * ierr)
Packit Service c5cf8c
{
Packit Service c5cf8c
    MPI_File fh_c;
Packit Service c5cf8c
Packit Service c5cf8c
    fh_c = MPI_File_f2c(*fh);
Packit Service c5cf8c
    *ierr = MPI_File_write_all_begin(fh_c, buf, *count, (MPI_Datatype) * datatype);
Packit Service c5cf8c
}
Packit Service c5cf8c
#endif