Last change
on this file since 1034 was
1034,
checked in by yushan, 7 years ago
|
adding src_ep into extern folder
|
File size:
567 bytes
|
Line | |
---|
1 | #include "ep_lib.hpp" |
---|
2 | #include <mpi.h> |
---|
3 | #include "ep_declaration.hpp" |
---|
4 | |
---|
5 | namespace ep_lib |
---|
6 | { |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr) |
---|
11 | { |
---|
12 | #ifdef _serialized |
---|
13 | #pragma omp critical (_mpi_call) |
---|
14 | #endif // _serialized |
---|
15 | ::MPI_Alloc_mem(size.mpi_aint, info.mpi_info, baseptr); |
---|
16 | return 0; |
---|
17 | } |
---|
18 | |
---|
19 | int MPI_Alloc_mem(unsigned long size, MPI_Info info, void *baseptr) |
---|
20 | { |
---|
21 | #ifdef _serialized |
---|
22 | #pragma omp critical (_mpi_call) |
---|
23 | #endif // _serialized |
---|
24 | ::MPI_Alloc_mem(size, info.mpi_info, baseptr); |
---|
25 | return 0; |
---|
26 | } |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | } |
---|
31 | |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.