1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-14 22:07:05 +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

@ -177,7 +177,7 @@ int main (int argc, char ** argv)
Real nn;
double start=usecond();
for(int i=0;i<Nloop;i++){
auto x_v = x.View();
auto x_v = x.View(CpuWrite);
nn=norm2(x);
vsplat(x_v[0]._internal[0],nn);
}