diff --git a/tests/Test_dwf_mixedcg_prec.cc b/tests/Test_dwf_mixedcg_prec.cc index ea37b29e..f7df05b9 100644 --- a/tests/Test_dwf_mixedcg_prec.cc +++ b/tests/Test_dwf_mixedcg_prec.cc @@ -34,6 +34,7 @@ using namespace Grid; #define HOST_NAME_MAX _POSIX_HOST_NAME_MAX #endif + NAMESPACE_BEGIN(Grid); template class SchurDiagMooeeOperatorParanoid : public SchurOperatorBase { @@ -143,14 +144,21 @@ int main (int argc, char ** argv) time_t start = time(NULL); - uint32_t csum, csumref; - csumref=0; + FlightRecorder::ContinueOnFail = 0; + FlightRecorder::PrintEntireLog = 0; + FlightRecorder::ChecksumComms = 1; + FlightRecorder::ChecksumCommsSend=0; + + if(char *s=getenv("GRID_PRINT_ENTIRE_LOG")) FlightRecorder::PrintEntireLog = atoi(s); + if(char *s=getenv("GRID_CHECKSUM_RECV_BUF")) FlightRecorder::ChecksumComms = atoi(s); + if(char *s=getenv("GRID_CHECKSUM_SEND_BUF")) FlightRecorder::ChecksumCommsSend = atoi(s); + int iter=0; do { if ( iter == 0 ) { - SetGridNormLoggingMode(GridNormLoggingModeRecord); + FlightRecorder::SetLoggingMode(FlightRecorder::LoggingModeRecord); } else { - SetGridNormLoggingMode(GridNormLoggingModeVerify); + FlightRecorder::SetLoggingMode(FlightRecorder::LoggingModeVerify); } std::cerr << "******************* SINGLE PRECISION SOLVE "<gSites()*iters; std::cout << " SinglePrecision iterations/sec "<< iters/(t2-t1)*1000.*1000.< CG(1.0e-8,10000); - csumref=0; int i=0; do { if ( i == 0 ) { - SetGridNormLoggingMode(GridNormLoggingModeRecord); + FlightRecorder::SetLoggingMode(FlightRecorder::LoggingModeRecord); } else { - SetGridNormLoggingMode(GridNormLoggingModeVerify); + FlightRecorder::SetLoggingMode(FlightRecorder::LoggingModeVerify); } std::cerr << "******************* DOUBLE PRECISION SOLVE "<