Ignore:
Timestamp:
05/15/19 17:19:08 (5 years ago)
Author:
yushan
Message:

MARK: branch merged with trunk @1660. Test (test_complete, test_remap) on ADA with IntelMPI and _usingEP/_usingMPI as switch.

Location:
XIOS/dev/dev_trunk_omp/extern/remap/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/extern/remap/src/mpi_routing.cpp

    r1646 r1661  
    153153        for (int i = 0; i < nbSource; i++) 
    154154        { 
     155                #ifdef _usingEP 
    155156                MPI_Irecv(&sourceRank[i], 1, MPI_INT, -2, 0, communicator, &request[indexRequest++]); 
     157                #endif 
     158                 
     159                #ifdef _usingMPI 
     160                MPI_Irecv(&sourceRank[i], 1, MPI_INT, MPI_ANY_SOURCE, 0, communicator, &request[indexRequest++]); 
     161                #endif 
    156162        } 
    157163        MPI_Barrier(communicator); 
     
    171177        for (int i = 0; i < nbSource; i++) 
    172178        { 
     179#ifdef _usingEP 
    173180                MPI_Irecv(&sourceRank[i], 1, MPI_INT, -2, 0, communicator, &request[indexRequest]); 
     181#endif 
     182#ifdef _usingMPI 
     183                MPI_Irecv(&sourceRank[i], 1, MPI_INT, MPI_ANY_SOURCE, 0, communicator, &request[indexRequest]); 
     184#endif 
    174185                indexRequest++; 
    175186        } 
  • XIOS/dev/dev_trunk_omp/extern/remap/src/timerRemap.cpp

    r1646 r1661  
    1212using namespace std; 
    1313 
    14 //map<string,CTimer*> CTimer::allTimer; 
    1514map<string,CTimer*> *CTimer::allTimer_ptr = 0; 
    1615 
     
    6160        map<string,CTimer*>::iterator it; 
    6261        if(allTimer_ptr == 0) allTimer_ptr = new map<string,CTimer*>; 
    63         //it=allTimer.find(name); 
    6462        it=allTimer_ptr->find(name); 
    65         //if (it==allTimer.end()) it=allTimer.insert(pair<string,CTimer*>(name,new CTimer(name))).first; 
    6663        if (it==allTimer_ptr->end()) it=allTimer_ptr->insert(pair<string,CTimer*>(name,new CTimer(name))).first; 
    6764        return *(it->second); 
  • XIOS/dev/dev_trunk_omp/extern/remap/src/timerRemap.hpp

    r1602 r1661  
    2626    double getCumulatedTime(void); 
    2727    void print(void); 
    28     //static map<string,CTimer*> allTimer; 
    2928    static map<string,CTimer*> *allTimer_ptr; 
    3029    #pragma omp threadprivate(allTimer_ptr) 
Note: See TracChangeset for help on using the changeset viewer.