1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

threaded rng init; I thought this was on

This commit is contained in:
Peter Boyle 2018-03-24 19:28:17 -04:00
parent 6fe9b28a82
commit cb0d2a1b03

View File

@ -347,8 +347,7 @@ public:
int words = sizeof(scalar_object) / sizeof(scalar_type); int words = sizeof(scalar_object) / sizeof(scalar_type);
auto l_v = l.View(); auto l_v = l.View();
// thread_loop( (int ss=0;ss<osites;ss++), { thread_loop( (int ss=0;ss<osites;ss++), {
for (int ss=0;ss<osites;ss++) {
ExtractBuffer<scalar_object> buf(Nsimd); ExtractBuffer<scalar_object> buf(Nsimd);
for (int m = 0; m < multiplicity; m++) { // Draw from same generator multiplicity times for (int m = 0; m < multiplicity; m++) { // Draw from same generator multiplicity times
@ -365,7 +364,7 @@ public:
// merge into SIMD lanes, FIXME suboptimal implementation // merge into SIMD lanes, FIXME suboptimal implementation
merge(l_v[sm], buf); merge(l_v[sm], buf);
} }
} });
// }); // });
_time_counter += usecond()- inner_time_counter; _time_counter += usecond()- inner_time_counter;