source: XIOS/dev/branch_openmp/extern/src_ep_dev/ep_memory.cpp @ 1365

Last change on this file since 1365 was 1365, checked in by yushan, 6 years ago

unify type : MPI_Datatype MPI_Aint

File size: 607 bytes
RevLine 
[1134]1#include "ep_lib.hpp"
2#include <mpi.h>
3#include "ep_declaration.hpp"
4
5namespace ep_lib
6{
7
8
9
10  int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr)
11  {
[1365]12    ::MPI_Alloc_mem(*(static_cast< ::MPI_Aint*>(size.mpi_aint)), *(static_cast< ::MPI_Info*>(info.mpi_info)), baseptr);
[1287]13    //::MPI_Alloc_mem(size.mpi_aint, MPI_INFO_NULL_STD, baseptr);
[1134]14    return 0;
15   }
16   
17  int MPI_Alloc_mem(unsigned long size, MPI_Info info, void *baseptr)
18  {
[1362]19    ::MPI_Alloc_mem(size, *(static_cast< ::MPI_Info*>(info.mpi_info)), baseptr);
[1287]20    //::MPI_Alloc_mem(size, MPI_INFO_NULL_STD, baseptr);
[1134]21    return 0;
22  }
23
24
25
26}
27
28
Note: See TracBrowser for help on using the repository browser.