mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-14 13:57:07 +01:00
View location & access mode
This commit is contained in:
@ -79,7 +79,7 @@ int main (int argc, char ** argv)
|
||||
|
||||
double start=usecond();
|
||||
thread_for(t,threads,{
|
||||
auto x_t = x[t].View();
|
||||
auto x_t = x[t].View(CpuRead);
|
||||
sum[t] = x_t[0];
|
||||
for(int i=0;i<Nloop;i++){
|
||||
for(auto ss=x_t.begin();ss<x_t.end();ss++){
|
||||
|
Reference in New Issue
Block a user