1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-16 06:47:06 +01:00

parallel_for elimination -> thread_loop

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

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];