Commit 35ee49ce authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add timing data to cells for kick1.


Former-commit-id: 9a867e5df2d02edc84109997778720798c56d48f
parent 2bec36ad
......@@ -117,6 +117,10 @@ struct cell {
/* Linking pointer for "memory management". */
struct cell *next;
/* Timing stuff. */
ticks tic, toc;
int tid;
} __attribute__((aligned (64)));
......
......@@ -732,8 +732,12 @@ void engine_step ( struct engine *e ) {
while ( 1 ) {
#pragma omp critical
myk = k++;
if ( myk < e->s->nr_cells )
if ( myk < e->s->nr_cells ) {
e->s->cells[myk].tic = getticks();
e->s->cells[myk].tid = omp_get_thread_num();
engine_map_kick_first( &e->s->cells[myk] , e );
e->s->cells[myk].toc = getticks();
}
else
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment