00001
00002
00003
00004
00005
00006
00007
00008 #include "adio.h"
00009 #include "mpio.h"
00010
00011
00012 #if defined(MPIO_BUILD_PROFILING) || defined(HAVE_WEAK_SYMBOLS)
00013
00014 #if defined(HAVE_WEAK_SYMBOLS)
00015 #if defined(HAVE_PRAGMA_WEAK)
00016 #if defined(FORTRANCAPS)
00017 extern FORTRAN_API void FORT_CALL MPI_FILE_WRITE_AT_ALL_BEGIN( MPI_Fint *, MPI_Offset *, void*, MPI_Fint *, MPI_Fint *, MPI_Fint * );
00018 #pragma weak MPI_FILE_WRITE_AT_ALL_BEGIN = PMPI_FILE_WRITE_AT_ALL_BEGIN
00019 #elif defined(FORTRANDOUBLEUNDERSCORE)
00020 extern FORTRAN_API void FORT_CALL mpi_file_write_at_all_begin__( MPI_Fint *, MPI_Offset *, void*, MPI_Fint *, MPI_Fint *, MPI_Fint * );
00021 #pragma weak mpi_file_write_at_all_begin__ = pmpi_file_write_at_all_begin__
00022 #elif !defined(FORTRANUNDERSCORE)
00023 extern FORTRAN_API void FORT_CALL mpi_file_write_at_all_begin( MPI_Fint *, MPI_Offset *, void*, MPI_Fint *, MPI_Fint *, MPI_Fint * );
00024 #pragma weak mpi_file_write_at_all_begin = pmpi_file_write_at_all_begin
00025 #else
00026 extern FORTRAN_API void FORT_CALL mpi_file_write_at_all_begin_( MPI_Fint *, MPI_Offset *, void*, MPI_Fint *, MPI_Fint *, MPI_Fint * );
00027 #pragma weak mpi_file_write_at_all_begin_ = pmpi_file_write_at_all_begin_
00028 #endif
00029
00030 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
00031 #if defined(FORTRANCAPS)
00032 #pragma _HP_SECONDARY_DEF PMPI_FILE_WRITE_AT_ALL_BEGIN MPI_FILE_WRITE_AT_ALL_BEGIN
00033 #elif defined(FORTRANDOUBLEUNDERSCORE)
00034 #pragma _HP_SECONDARY_DEF pmpi_file_write_at_all_begin__ mpi_file_write_at_all_begin__
00035 #elif !defined(FORTRANUNDERSCORE)
00036 #pragma _HP_SECONDARY_DEF pmpi_file_write_at_all_begin mpi_file_write_at_all_begin
00037 #else
00038 #pragma _HP_SECONDARY_DEF pmpi_file_write_at_all_begin_ mpi_file_write_at_all_begin_
00039 #endif
00040
00041 #elif defined(HAVE_PRAGMA_CRI_DUP)
00042 #if defined(FORTRANCAPS)
00043 #pragma _CRI duplicate MPI_FILE_WRITE_AT_ALL_BEGIN as PMPI_FILE_WRITE_AT_ALL_BEGIN
00044 #elif defined(FORTRANDOUBLEUNDERSCORE)
00045 #pragma _CRI duplicate mpi_file_write_at_all_begin__ as pmpi_file_write_at_all_begin__
00046 #elif !defined(FORTRANUNDERSCORE)
00047 #pragma _CRI duplicate mpi_file_write_at_all_begin as pmpi_file_write_at_all_begin
00048 #else
00049 #pragma _CRI duplicate mpi_file_write_at_all_begin_ as pmpi_file_write_at_all_begin_
00050 #endif
00051
00052
00053 #endif
00054
00055 #include "mpioprof.h"
00056 #endif
00057
00058 #ifdef FORTRANCAPS
00059 #define mpi_file_write_at_all_begin_ PMPI_FILE_WRITE_AT_ALL_BEGIN
00060 #elif defined(FORTRANDOUBLEUNDERSCORE)
00061 #define mpi_file_write_at_all_begin_ pmpi_file_write_at_all_begin__
00062 #elif !defined(FORTRANUNDERSCORE)
00063 #if defined(HPUX) || defined(SPPUX)
00064 #pragma _HP_SECONDARY_DEF pmpi_file_write_at_all_begin pmpi_file_write_at_all_begin_
00065 #endif
00066 #define mpi_file_write_at_all_begin_ pmpi_file_write_at_all_begin
00067 #else
00068 #if defined(HPUX) || defined(SPPUX)
00069 #pragma _HP_SECONDARY_DEF pmpi_file_write_at_all_begin_ pmpi_file_write_at_all_begin
00070 #endif
00071 #define mpi_file_write_at_all_begin_ pmpi_file_write_at_all_begin_
00072 #endif
00073
00074 #else
00075
00076 #ifdef FORTRANCAPS
00077 #define mpi_file_write_at_all_begin_ MPI_FILE_WRITE_AT_ALL_BEGIN
00078 #elif defined(FORTRANDOUBLEUNDERSCORE)
00079 #define mpi_file_write_at_all_begin_ mpi_file_write_at_all_begin__
00080 #elif !defined(FORTRANUNDERSCORE)
00081 #if defined(HPUX) || defined(SPPUX)
00082 #pragma _HP_SECONDARY_DEF mpi_file_write_at_all_begin mpi_file_write_at_all_begin_
00083 #endif
00084 #define mpi_file_write_at_all_begin_ mpi_file_write_at_all_begin
00085 #else
00086 #if defined(HPUX) || defined(SPPUX)
00087 #pragma _HP_SECONDARY_DEF mpi_file_write_at_all_begin_ mpi_file_write_at_all_begin
00088 #endif
00089 #endif
00090 #endif
00091
00092
00093 #if defined(MPIHP) || defined(MPILAM)
00094
00095 void mpi_file_write_at_all_begin_(MPI_Fint *fh,MPI_Offset *offset,void *buf,
00096 MPI_Fint *count,MPI_Fint *datatype, MPI_Fint *ierr );
00097
00098 void mpi_file_write_at_all_begin_(MPI_Fint *fh,MPI_Offset *offset,void *buf,
00099 MPI_Fint *count,MPI_Fint *datatype, MPI_Fint *ierr )
00100 {
00101 MPI_File fh_c;
00102 MPI_Datatype datatype_c;
00103
00104 fh_c = MPI_File_f2c(*fh);
00105 datatype_c = MPI_Type_f2c(*datatype);
00106
00107 *ierr = MPI_File_write_at_all_begin(fh_c,*offset,buf,*count,datatype_c);
00108 }
00109 #else
00110
00111 FORTRAN_API void FORT_CALL mpi_file_write_at_all_begin_(MPI_Fint *fh,MPI_Offset *offset,void *buf,
00112 MPI_Fint *count,MPI_Fint *datatype, MPI_Fint *ierr );
00113
00114 FORTRAN_API void FORT_CALL mpi_file_write_at_all_begin_(MPI_Fint *fh,MPI_Offset *offset,void *buf,
00115 MPI_Fint *count,MPI_Fint *datatype, MPI_Fint *ierr )
00116 {
00117 MPI_File fh_c;
00118
00119 fh_c = MPI_File_f2c(*fh);
00120 *ierr = MPI_File_write_at_all_begin(fh_c,*offset,buf,*count,(MPI_Datatype)*datatype);
00121 }
00122 #endif