Ignore:
Timestamp:
11/22/22 14:25:20 (19 months ago)
Author:
jderouillat
Message:

Backport the XIOS3 system to log the memory consumption (commit ID [2418-2420,2425-2426])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS2/trunk/src/cxios.cpp

    r2330 r2428  
    1010#include <new> 
    1111#include "memtrack.hpp" 
     12#include "mem_checker.hpp" 
    1213#include "registry.hpp" 
    1314 
     
    4546  bool CXios::checkSumRecv=false ; 
    4647  bool CXios::checkSumSend=false ; 
     48  bool CXios::logMemory=false ; 
    4749  
    4850  //! Parse configuration file and create some objects from it 
     
    9799    checkSumSend = getin<bool>("checksum_send_fields", false); 
    98100    checkSumRecv = getin<bool>("checksum_recv_fields", false); 
     101 
     102    logMemory = getin<bool>("log_memory", false); 
    99103  
    100104    globalComm=MPI_COMM_WORLD ; 
     
    131135      CClient::openErrorStream(); 
    132136    } 
     137    CMemChecker::logMem("CXios::initClientSide"); 
    133138  } 
    134139  CATCH 
     
    136141  void CXios::clientFinalize(void) 
    137142  { 
     143     CMemChecker::logMem("CXios::clientFinalize", true); 
    138144     CClient::finalize() ; 
    139145     if (CClient::getRank()==0) 
     
    206212      CServer::openErrorStream(); 
    207213    } 
     214    CMemChecker::logMem( "CServer::initialize" ); 
    208215 
    209216    // Enter the loop to listen message from Client 
Note: See TracChangeset for help on using the changeset viewer.