1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

Debugging the RNG IO

This commit is contained in:
Guido Cossu 2018-05-02 15:32:06 +01:00
parent 4d4ac2517b
commit ba37d51ee9

View File

@ -263,7 +263,7 @@ PARALLEL_CRITICAL
GridBase *grid, GridBase *grid,
std::vector<fobj> &iodata, std::vector<fobj> &iodata,
std::string file, std::string file,
uint64_t offset, uint64_t& offset,
const std::string &format, int control, const std::string &format, int control,
uint32_t &nersc_csum, uint32_t &nersc_csum,
uint32_t &scidac_csuma, uint32_t &scidac_csuma,
@ -495,6 +495,7 @@ PARALLEL_CRITICAL
exit(1); exit(1);
#endif #endif
} }
offset = fout.tellp();
fout.close(); fout.close();
} }
timer.Stop(); timer.Stop();
@ -699,7 +700,6 @@ PARALLEL_CRITICAL
IOobject(w,grid,iodata,file,offset,format,BINARYIO_WRITE|BINARYIO_LEXICOGRAPHIC, IOobject(w,grid,iodata,file,offset,format,BINARYIO_WRITE|BINARYIO_LEXICOGRAPHIC,
nersc_csum,scidac_csuma,scidac_csumb); nersc_csum,scidac_csuma,scidac_csumb);
iodata.resize(1); iodata.resize(1);
{ {
std::vector<RngStateType> tmp(RngStateCount); std::vector<RngStateType> tmp(RngStateCount);