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

Accelerator loop changes for coalesced access

This commit is contained in:
Peter Boyle 2019-06-15 07:44:47 +01:00
parent cb93d32cd9
commit 81eb1fd9f2

View File

@ -132,9 +132,9 @@ public:
auto psi_v = psi.View();
auto p_v = p.View();
auto r_v = r.View();
accelerator_loop(ss,p_v,{
vstream(psi_v[ss], a * p_v[ss] + psi_v[ss]);
vstream(p_v [ss], b * p_v[ss] + r_v[ss]);
accelerator_for(ss,p_v.size(), Field::vector_object::Nsimd(),{
coalescedWrite(psi_v[ss], a * p_v(ss) + psi_v(ss));
coalescedWrite(p_v[ss] , b * p_v(ss) + r_v (ss));
});
LinearCombTimer.Stop();
LinalgTimer.Stop();