Ignore:
Timestamp:
11/19/18 15:52:54 (5 years ago)
Author:
yushan
Message:

branch_openmp merged with trunk r1597

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/context_client.cpp

    r1475 r1601  
    1212#include "cxios.hpp" 
    1313#include "server.hpp" 
     14using namespace ep_lib; 
    1415 
    1516namespace xios 
     
    101102        typeId_in=event.getTypeId() ; 
    102103        classId_in=event.getClassId() ; 
    103 //        MPI_Allreduce(&timeLine,&timeLine_out, 1, MPI_UINT64_T, MPI_SUM, intraComm) ; // MPI_UINT64_T standardized by MPI 3 
    104         MPI_Allreduce(&timeLine,&timeLine_out, 1, MPI_LONG_LONG_INT, MPI_SUM, intraComm) ;  
     104        MPI_Allreduce(&timeLine,&timeLine_out, 1, MPI_LONG_LONG_INT, MPI_SUM, intraComm) ; 
    105105        MPI_Allreduce(&typeId_in,&typeId, 1, MPI_INT, MPI_SUM, intraComm) ; 
    106106        MPI_Allreduce(&classId_in,&classId, 1, MPI_INT, MPI_SUM, intraComm) ; 
     
    341341       if (ratio < minBufferSizeEventSizeRatio) minBufferSizeEventSizeRatio = ratio; 
    342342     } 
    343      MPI_Allreduce(MPI_IN_PLACE, &minBufferSizeEventSizeRatio, 1, MPI_DOUBLE, MPI_MIN, intraComm); 
     343     MPI_Allreduce(&minBufferSizeEventSizeRatio, &minBufferSizeEventSizeRatio, 1, MPI_DOUBLE, MPI_MIN, intraComm); 
    344344 
    345345     if (minBufferSizeEventSizeRatio < 1.0) 
     
    425425      for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 
    426426      { 
     427        #pragma omp critical (_output) 
    427428        info(100)<<"DEBUG : Sent context Finalize event to rank "<<*itRank<<endl ; 
    428429        event.push(*itRank, 1, msg); 
     
    450451    for (itMap = itbMap; itMap != iteMap; ++itMap) 
    451452    { 
     453      #pragma omp critical (_output) 
    452454      report(10) << " Memory report : Context <" << context->getId() << "> : client side : memory used for buffer of each connection to server" << endl 
    453455                 << "  +) To server with rank " << itMap->first << " : " << itMap->second << " bytes " << endl; 
    454456      totalBuf += itMap->second; 
    455457    } 
     458    #pragma omp critical (_output) 
    456459    report(0) << " Memory report : Context <" << context->getId() << "> : client side : total memory used for buffer " << totalBuf << " bytes" << endl; 
    457460 
Note: See TracChangeset for help on using the changeset viewer.