mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-17 21:13:18 +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
@@ -79,7 +79,7 @@ int main (int argc, char ** argv)
|
||||
|
||||
double start=usecond();
|
||||
thread_for(t,threads,{
|
||||
auto x_t = x[t].View(CpuRead);
|
||||
autoView( x_t , x[t],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