00001
00002
00003
00004
00005
00006
00007
00008 #include "mpioimpl.h"
00009
00010 #ifdef HAVE_WEAK_SYMBOLS
00011
00012 #if defined(HAVE_PRAGMA_WEAK)
00013 #pragma weak MPI_File_read_at_all = PMPI_File_read_at_all
00014 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
00015 #pragma _HP_SECONDARY_DEF PMPI_File_read_at_all MPI_File_read_at_all
00016 #elif defined(HAVE_PRAGMA_CRI_DUP)
00017 #pragma _CRI duplicate MPI_File_read_at_all as PMPI_File_read_at_all
00018
00019 #endif
00020
00021
00022 #define MPIO_BUILD_PROFILING
00023 #include "mpioprof.h"
00024 #endif
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 int MPI_File_read_at_all(MPI_File mpi_fh, MPI_Offset offset, void *buf,
00044 int count, MPI_Datatype datatype,
00045 MPI_Status *status)
00046 {
00047 int error_code;
00048 static char myname[] = "MPI_FILE_IREAD_AT";
00049 #ifdef MPI_hpux
00050 int fl_xmpi;
00051
00052 HPMP_IO_START(fl_xmpi, BLKMPIFILEREADATALL, TRDTBLOCK, mpi_fh, datatype,
00053 count);
00054 #endif
00055
00056 error_code = MPIOI_File_read_all(mpi_fh, offset, ADIO_EXPLICIT_OFFSET, buf,
00057 count, datatype, myname, status);
00058
00059 #ifdef MPI_hpux
00060 HPMP_IO_END(fl_xmpi, mpi_fh, datatype, count);
00061 #endif
00062
00063 return error_code;
00064 }