mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-13 01:05:36 +00:00
Accelerator loop
This commit is contained in:
parent
532e226b22
commit
7b7c470917
@ -95,7 +95,7 @@ void Gather_plane_exchange_table(Vector<std::pair<int,int> >& table,const Lattic
|
|||||||
int so = plane*rhs.Grid()->_ostride[dimension]; // base offset for start of plane
|
int so = plane*rhs.Grid()->_ostride[dimension]; // base offset for start of plane
|
||||||
|
|
||||||
auto rhs_v = rhs.View();
|
auto rhs_v = rhs.View();
|
||||||
thread_for(j, num, {
|
accelerator_for(j, num, 1, {
|
||||||
compress.CompressExchange(&pointers[0][0],
|
compress.CompressExchange(&pointers[0][0],
|
||||||
&pointers[1][0],
|
&pointers[1][0],
|
||||||
&rhs_v[0],
|
&rhs_v[0],
|
||||||
|
Loading…
Reference in New Issue
Block a user