Ignore:
Timestamp:
05/28/18 09:54:32 (6 years ago)
Author:
yushan
Message:

save dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/ep_dev/ep_type.hpp

    r1499 r1500  
    1212#include <numeric> 
    1313#include <bitset> 
    14 //#include <memory.h> 
    1514#include <algorithm> 
    1615#include <assert.h> 
     
    2625#define BUFFER_SIZE 10000 
    2726 
    28 //#define NUM_THREADS 12 
    29  
    30 typedef std::pair< int, int > SIZE_RANK_INFO; // < rank, size> 
    31  
    32 typedef std::vector< std::pair<int, int> > RANK_MAP;  // at(ep_rank) = <ep_rank_local, mpi_rank> 
    33  
    34 typedef std::vector<std::pair< std::pair<int, int>, std::pair<int, int> > > INTERCOMM_RANK_MAP; 
    35  
    36  
    37 typedef struct 
    38 { 
    39   int first; 
    40   int second; 
    41   int third; 
    42 } Triple_int; 
     27#include "ep_status.hpp" 
     28#include "ep_request.hpp" 
     29#include "ep_info.hpp" 
     30#include "ep_message.hpp" 
     31#include "ep_barrier.hpp" 
     32#include "ep_comm.hpp" 
     33#include "ep_intercomm.hpp" 
     34#include "ep_window.hpp" 
     35 
     36 
     37//typedef std::pair< int, int > SIZE_RANK_INFO; // < rank, size> 
     38 
     39//typedef std::vector< std::pair<int, int> > RANK_MAP;  // at(ep_rank) = <ep_rank_local, mpi_rank> 
     40//typedef std::map<int, std::pair<int, int> > EP_RANK_MAP;  // key(ep_rank) = <ep_rank_local, mpi_rank> 
     41 
     42//typedef std::vector<std::pair< std::pair<int, int>, std::pair<int, int> > > INTERCOMM_RANK_MAP; 
     43 
    4344 
    4445namespace ep_lib 
    4546{ 
    46   //#define EP_UNDEFINED -32766 
    4747 
    4848  class ep_communicator; 
     
    5050  class OMPbarrier; 
    5151  typedef ep_communicator* EP_Comm; 
    52   class MPI_Comm; 
    53  
    54  
     52  //class MPI_Comm; 
     53 
     54/* 
    5555  class MPI_Status 
    5656  { 
     
    7777 
    7878  typedef std::list<MPI_Message > Message_list; 
    79  
     79*/ 
    8080 
    8181  class OMPbarrier 
     
    130130  }; 
    131131 
     132  /* 
    132133  class ep_intercomm 
    133134  { 
     
    152153    bool operator != (ep_intercomm right); 
    153154     
    154  
    155  
    156   }; 
    157  
     155  }; 
    158156 
    159157  class ep_communicator 
     
    247245  }; 
    248246 
    249    
     247*/   
    250248 
    251249  class MPI_Aint 
     
    274272  }; 
    275273  
    276   class MPI_Win 
    277   { 
    278     public: 
    279     bool is_ep; 
    280     MPI_Comm comm; 
    281  
    282     void* server_win[16]; 
    283     void* client_win; 
    284     void* null_win[16]; 
    285   }; 
     274   
    286275 
    287276 
Note: See TracChangeset for help on using the changeset viewer.