From b5926c1d218507702b5870814f0e376b7370cff1 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 11 Jun 2024 15:16:25 -0400 Subject: [PATCH 1/2] Broadcast time info --- tests/Test_dwf_mixedcg_prec.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/Test_dwf_mixedcg_prec.cc b/tests/Test_dwf_mixedcg_prec.cc index 3d21aff4..f37696a8 100644 --- a/tests/Test_dwf_mixedcg_prec.cc +++ b/tests/Test_dwf_mixedcg_prec.cc @@ -142,7 +142,9 @@ int main (int argc, char ** argv) std:: cout << " CG site flops = "<< CGsiteflops <Broadcast(0,(void *)&start,sizeof(start)); FlightRecorder::ContinueOnFail = 0; FlightRecorder::PrintEntireLog = 0; @@ -162,9 +164,9 @@ int main (int argc, char ** argv) } std::cerr << "******************* SINGLE PRECISION SOLVE "<gSites()*iters; flops+= CGsiteflops*FrbGrid->gSites()*iters; @@ -176,7 +178,8 @@ int main (int argc, char ** argv) std::cout << " FlightRecorder is OK! "<Broadcast(0,(void *)&now,sizeof(now)); + } while (now < (start + nsecs/10) ); std::cout << GridLogMessage << "::::::::::::: Starting double precision CG" << std::endl; ConjugateGradient CG(1.0e-8,10000); @@ -189,7 +192,7 @@ int main (int argc, char ** argv) } std::cerr << "******************* DOUBLE PRECISION SOLVE "<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); From d299c86633e877847510947a00a031e42e80d431 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 11 Jun 2024 16:41:23 -0400 Subject: [PATCH 2/2] Std::asin,acos --- Grid/simd/Simd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Grid/simd/Simd.h b/Grid/simd/Simd.h index 78fae298..428981fa 100644 --- a/Grid/simd/Simd.h +++ b/Grid/simd/Simd.h @@ -99,6 +99,8 @@ using std::log; using std::exp; using std::sin; using std::cos; +using std::asin; +using std::acos; accelerator_inline RealF conjugate(const RealF & r){ return r; }