Changeset 400
- Timestamp:
- 12/13/12 17:07:45 (11 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/buffer_client.cpp
r382 r400 11 11 { 12 12 13 size_t maxRequestSize=0 ; 14 13 15 CClientBuffer::CClientBuffer(MPI_Comm interComm_,int serverRank_) 14 16 { … … 40 42 bool CClientBuffer::isBufferFree(int size) 41 43 { 44 if (size>maxRequestSize) maxRequestSize=size ; 45 42 46 if (size>bufferSize) ERROR("CClientBuffer::hasSpace(int size)", 43 <<"request size is too big for buffer, increase buffer client size"); 47 <<"request size is too big for buffer, increase buffer client size"<<endl 48 <<"Current buffer_size : "<<CXios::bufferSize<<endl 49 <<"buffer_size must be > "<<size*2<<endl) 44 50 45 51 if (size<=remain()) return true ; -
XIOS/trunk/src/buffer_client.hpp
r382 r400 8 8 namespace xios 9 9 { 10 extern size_t maxRequestSize ; 11 10 12 class CClientBuffer 11 13 { -
XIOS/trunk/src/client.cpp
r382 r400 9 9 #include "mpi.hpp" 10 10 #include "timer.hpp" 11 #include "buffer_client.hpp" 11 12 12 13 namespace xios … … 204 205 report(0)<< " Performance report : Ratio : "<< CTimer::get("Blocking time").getCumulatedTime()/CTimer::get("XIOS").getCumulatedTime()*100.<<" %"<<endl ; 205 206 report(0)<< " Performance report : This ratio must be close to zero. Otherwise it may be usefull to increase buffer size or numbers of server"<<endl ; 206 } 207 report(0)<< " Memory report : Current buffer_size : "<<CXios::bufferSize<<endl ; 208 report(0)<< " Memory report : Minimum buffer size required : "<<maxRequestSize*2<<endl ; 209 report(0)<< " Memory report : increasing it by a factor will increase performance, depending of the volume of data wrote in file at each time step of the file"<<endl ; 210 } 207 211 } -
XIOS/trunk/src/cxios.cpp
r382 r400 7 7 #include <boost/functional/hash.hpp> 8 8 #include "mpi.hpp" 9 #include "memory.hpp" 10 #include <new> 9 11 10 12 namespace xios … … 25 27 void CXios::initialize() 26 28 { 29 set_new_handler(noMemory); 27 30 parseFile(rootFile); 28 31 usingServer=getin<bool>("using_server",false) ;
Note: See TracChangeset
for help on using the changeset viewer.