mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-20 06:13:17 +01:00
Global edit with change to View usage. autoView() creates a wrapper object that closes the view when scope closes.
This commit is contained in:
1 parent
f39c2a240b
commit
1a4c8c3387
78 files changed
+773
-778
No files matched your search
@@ -177,9 +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(CpuWrite);
|
||||
nn=norm2(x);
|
||||
vsplat(x_v[0]._internal[0],nn);
|
||||
}
|
||||
double stop=usecond();
|
||||
double time = (stop-start)/Nloop*1000;
|
||||
|
||||
Reference in new issue
Block a user