mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-21 23:03:17 +01:00
parallel_for elimination -> thread_loop
This commit is contained in:
1 parent
9472b02771
commit
70e276e1ab
21 files changed
+269
-300
No files matched your search
@@ -101,10 +101,10 @@ public:
|
||||
//static std::chrono::duration<double> diff;
|
||||
|
||||
//auto start = std::chrono::high_resolution_clock::now();
|
||||
parallel_for(int ss=0;ss<P.Grid()->oSites();ss++){
|
||||
thread_loop( (int ss=0;ss<P.Grid()->oSites();ss++),{
|
||||
for (int mu = 0; mu < Nd; mu++)
|
||||
U[ss]._internal[mu] = ProjectOnGroup(Exponentiate(P[ss]._internal[mu], ep, Nexp) * U[ss]._internal[mu]);
|
||||
}
|
||||
});
|
||||
|
||||
//auto end = std::chrono::high_resolution_clock::now();
|
||||
// diff += end - start;
|
||||
|
||||
Reference in new issue
Block a user