From d0d8dc8042848a8b7e76e376c0fd89b5eccb43ec Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sat, 15 Jun 2019 07:45:09 +0100 Subject: [PATCH] Thread loop changes --- Grid/algorithms/iterative/ImplicitlyRestartedLanczos.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Grid/algorithms/iterative/ImplicitlyRestartedLanczos.h b/Grid/algorithms/iterative/ImplicitlyRestartedLanczos.h index 6b92b67a..47dcee52 100644 --- a/Grid/algorithms/iterative/ImplicitlyRestartedLanczos.h +++ b/Grid/algorithms/iterative/ImplicitlyRestartedLanczos.h @@ -65,7 +65,7 @@ void basisRotate(std::vector &basis,Eigen::MatrixXd& Qt,int j0, int j1, i thread_region { std::vector < vobj , commAllocator > B(Nm); // Thread private - thread_loop_in_region( (int ss=0;ss < grid->oSites();ss++),{ + thread_for_in_region(ss, grid->oSites(),{ for(int j=j0; j &basis,Eigen::MatrixXd& Qt,in result.Checkerboard() = basis[0].Checkerboard(); auto result_v=result.View(); - thread_loop( (int ss=0;ss < grid->oSites();ss++),{ + thread_for(ss, grid->oSites(),{ vobj B = Zero(); for(int k=k0; k