Ignore:
Timestamp:
05/23/23 12:11:20 (14 months ago)
Author:
jderouillat
Message:

Add a comparison operator to the filesToWrite_ std::set to force the file creation ordering + Backporting of 2462, 2494 and test suite environment for RedHat8

Location:
XIOS3/dev/XIOS_ATTACHED/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/dev/XIOS_ATTACHED/src/manager/pool_ressource.cpp

    r2458 r2504  
    2626    } 
    2727     
     28    notifyType_=NOTIFY_NOTHING; 
    2829    winNotify_->lockWindow(commRank,0) ; 
    2930    winNotify_->updateToWindow(commRank, this, &CPoolRessource::notificationsDumpOut) ; 
  • XIOS3/dev/XIOS_ATTACHED/src/manager/token_manager.hpp

    r2458 r2504  
    1919        MPI_Aint size = 0 ; 
    2020        if (leader_== commRank) size = sizeof(size_t) ; 
    21         MPI_Win_create(&currentToken_, size, sizeof(size_t), MPI_INFO_NULL, comm, &winCurrentToken_) ; 
    22         MPI_Win_create(&retrievedToken_, size, sizeof(size_t), MPI_INFO_NULL, comm, &winRetrievedToken_) ; 
     21        const MPI_Aint windowSize=sizeof(size_t);  
     22        MPI_Win_allocate(windowSize, 1, MPI_INFO_NULL, comm, &winBufferCurrent_,   &winCurrentToken_) ; 
     23        MPI_Win_allocate(windowSize, 1, MPI_INFO_NULL, comm, &winBufferRetrieved_, &winRetrievedToken_) ;  
    2324      } 
    2425 
     
    5960      MPI_Win winCurrentToken_ ; 
    6061      MPI_Win winRetrievedToken_ ; 
    61        
     62      void* winBufferCurrent_ ;  
     63      void* winBufferRetrieved_ ; 
     64 
    6265      int leader_ ; 
    6366 
  • XIOS3/dev/XIOS_ATTACHED/src/node/context.hpp

    r2482 r2504  
    1515#include "server_context.hpp" 
    1616#include "event_scheduler.hpp" 
     17#include "file.hpp" 
    1718 
    1819 
     
    299300        void registerFileToWrite(CFile* file) { filesToWrite_.insert(file); } // Add a file that need to be write for example to create headers 
    300301      private:   
    301         std::set<CFile*> filesToWrite_ ;   
     302        std::set<CFile*,FilePtrCompare> filesToWrite_ ;   
    302303 
    303304      private: 
  • XIOS3/dev/XIOS_ATTACHED/src/node/file.hpp

    r2482 r2504  
    228228   ///-------------------------------------------------------------- 
    229229 
     230   struct FilePtrCompare { 
     231     bool operator() (CFile const *l, CFile const *r) const { 
     232       return l->getFileOutputName() < r->getFileOutputName(); 
     233     } 
     234   }; 
    230235} // namespace xios 
    231236 
Note: See TracChangeset for help on using the changeset viewer.