This source file includes following definitions.
- MPI_File_get_atomicity
1
2
3
4
5
6
7
8 #include "mpioimpl.h"
9
10 #ifdef HAVE_WEAK_SYMBOLS
11
12 #if defined(HAVE_PRAGMA_WEAK)
13 #pragma weak MPI_File_get_atomicity = PMPI_File_get_atomicity
14 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
15 #pragma _HP_SECONDARY_DEF PMPI_File_get_atomicity MPI_File_get_atomicity
16 #elif defined(HAVE_PRAGMA_CRI_DUP)
17 #pragma _CRI duplicate MPI_File_get_atomicity as PMPI_File_get_atomicity
18
19 #elif defined(HAVE_WEAK_ATTRIBUTE)
20 int MPI_File_get_atomicity(MPI_File fh, int *flag) __attribute__((weak,alias("PMPI_File_get_atomicity")));
21 #endif
22
23
24 #define MPIO_BUILD_PROFILING
25 #include "mpioprof.h"
26 #endif
27
28
29
30
31
32
33
34
35
36
37
38
39 int MPI_File_get_atomicity(MPI_File fh, int *flag)
40 {
41 int error_code;
42 ADIO_File adio_fh;
43 static char myname[] = "MPI_FILE_GET_ATOMICITY";
44
45 adio_fh = MPIO_File_resolve(fh);
46
47
48 MPIO_CHECK_FILE_HANDLE(adio_fh, myname, error_code);
49
50
51 *flag = adio_fh->atomicity;
52
53 fn_exit:
54 return MPI_SUCCESS;
55 }