Ignore:
Timestamp:
12/05/17 16:24:42 (7 years ago)
Author:
yushan
Message:

unify MPI_Comm type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/src_ep_dev/ep_lib.hpp

    r1354 r1355  
    1111namespace ep_lib 
    1212{ 
    13 #ifdef _intelmpi 
     13//#ifdef _intelmpi 
    1414  typedef int MPI_Datatype; 
    1515  typedef int MPI_Op; 
    16   #define EP_ANY_SOURCE -2  
    17   #define EP_ANY_TAG -1  
    18 #elif _openmpi 
    19   typedef void* MPI_Datatype; 
    20   typedef void* MPI_Op; 
    21   #define EP_ANY_SOURCE -1  
    22   #define EP_ANY_TAG -1  
    23 #endif 
     16//  #define EP_ANY_SOURCE -2  
     17//  #define EP_ANY_TAG -1  
     18//#elif _openmpi 
     19//  typedef void* MPI_Datatype; 
     20//  typedef void* MPI_Op; 
     21//  #define EP_ANY_SOURCE -1  
     22//  #define EP_ANY_TAG -1  
     23//#endif 
    2424 
    2525  int MPI_Init_thread(int* argc, char*** argv, int required, int*provided); 
     
    4949  // #endif 
    5050   
    51   int MPI_Comm_create_endpoints(void* base_comm_ptr, int num_ep, MPI_Info info, MPI_Comm *& out_comm_hdls); // from EP to create endpoints 
     51  int MPI_Comm_create_endpoints(int* base_comm_ptr, int num_ep, MPI_Info info, MPI_Comm *& out_comm_hdls); // from EP to create endpoints 
    5252 
    5353  int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm); 
Note: See TracChangeset for help on using the changeset viewer.