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; } 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);