00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "mpioimpl.h"
00010
00011 #ifdef HAVE_WEAK_SYMBOLS
00012
00013 #if defined(HAVE_PRAGMA_WEAK)
00014 #pragma weak MPI_File_set_info = PMPI_File_set_info
00015 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
00016 #pragma _HP_SECONDARY_DEF PMPI_File_set_info MPI_File_set_info
00017 #elif defined(HAVE_PRAGMA_CRI_DUP)
00018 #pragma _CRI duplicate MPI_File_set_info as PMPI_File_set_info
00019
00020 #endif
00021
00022
00023 #define MPIO_BUILD_PROFILING
00024 #include "mpioprof.h"
00025 #endif
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 int MPI_File_set_info(MPI_File fh, MPI_Info info)
00037 {
00038 int error_code;
00039 #ifndef PRINT_ERR_MSG
00040 static char myname[] = "MPI_FILE_SET_INFO";
00041 #endif
00042
00043 #ifdef PRINT_ERR_MSG
00044 if ((fh <= (MPI_File) 0) || (fh->cookie != ADIOI_FILE_COOKIE)) {
00045 FPRINTF(stderr, "MPI_File_set_info: Invalid file handle\n");
00046 MPI_Abort(MPI_COMM_WORLD, 1);
00047 }
00048 #else
00049 ADIOI_TEST_FILE_HANDLE(fh, myname);
00050 #endif
00051
00052
00053 ADIO_SetInfo(fh, info, &error_code);
00054
00055 return error_code;
00056 }