mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	Broadcast time info
This commit is contained in:
		@@ -142,7 +142,9 @@ int main (int argc, char ** argv)
 | 
			
		||||
  std:: cout << " CG    site flops = "<< CGsiteflops <<std::endl;
 | 
			
		||||
  int iters;
 | 
			
		||||
 | 
			
		||||
  time_t now;
 | 
			
		||||
  time_t start = time(NULL);
 | 
			
		||||
  UGrid->Broadcast(0,(void *)&start,sizeof(start));
 | 
			
		||||
 | 
			
		||||
  FlightRecorder::ContinueOnFail = 0;
 | 
			
		||||
  FlightRecorder::PrintEntireLog = 0;
 | 
			
		||||
@@ -176,7 +178,8 @@ int main (int argc, char ** argv)
 | 
			
		||||
 | 
			
		||||
    std::cout << " FlightRecorder is OK! "<<std::endl;
 | 
			
		||||
    iter ++;
 | 
			
		||||
  } while (time(NULL) < (start + nsecs/10) );
 | 
			
		||||
    now = time(NULL); UGrid->Broadcast(0,(void *)&now,sizeof(now));
 | 
			
		||||
  } while (now < (start + nsecs/10) );
 | 
			
		||||
    
 | 
			
		||||
  std::cout << GridLogMessage << "::::::::::::: Starting double precision CG" << std::endl;
 | 
			
		||||
  ConjugateGradient<LatticeFermionD> CG(1.0e-8,10000);
 | 
			
		||||
@@ -201,8 +204,9 @@ int main (int argc, char ** argv)
 | 
			
		||||
    std::cout << " DoublePrecision error count "<< FlightRecorder::ErrorCount()<<std::endl;
 | 
			
		||||
    assert(FlightRecorder::ErrorCount()==0);
 | 
			
		||||
    std::cout << " FlightRecorder is OK! "<<std::endl;
 | 
			
		||||
    now = time(NULL); UGrid->Broadcast(0,(void *)&now,sizeof(now));
 | 
			
		||||
    i++;
 | 
			
		||||
  } while (time(NULL) < (start + nsecs) );
 | 
			
		||||
  } while (now < (start + nsecs) );
 | 
			
		||||
 | 
			
		||||
  LatticeFermionD diff_o(FrbGrid);
 | 
			
		||||
  RealD diff = axpy_norm(diff_o, -1.0, result_o, result_o_2);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user