parallel_for elimination -> thread_loop

This commit is contained in:
paboyle committed 2018-01-28 01:01:36 +00:00
1 parent 70e276e1ab
commit 604c05f4b8
3 files changed
+11 -18

No files matched your search

+2 -2
View File
@@ -78,7 +78,7 @@ int main (int argc, char ** argv)
}
double start=usecond();
parallel_for(int t=0;t<threads;t++){
thread_loop( (int t=0;t<threads;t++),{
sum[t] = x[t][0];
for(int i=0;i<Nloop;i++){
@@ -87,7 +87,7 @@ int main (int argc, char ** argv)
}
}
stop[t]=usecond();
}
});
double max_stop=stop[0];
double min_stop=stop[0];