1
0
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:
Peter Boyle
2020-05-21 16:13:59 -04:00
parent 7860a50f70
commit a7abda89e2
8 changed files with 47 additions and 47 deletions

View File

@ -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++){