Commit 85bfc804 authored by Dave Wells's avatar Dave Wells Committed by Yoni Fogel

remove cilk_spawn that is within cilk_for loop

git-svn-id: file:///svn/toku/tokudb@20684 c7de825b-a66e-492c-adef-691d508d4ae1
parent 97c826d5
......@@ -830,10 +830,13 @@ static int finish_primary_rows_internal (BRTLOADER bl)
int *MALLOC_N(bl->N, ra);
if (ra==NULL) return errno;
#if defined(__cilkplusplus)
#pragma cilk_grainsize = 1
#endif
cilk_for (int i = 0; i < bl->N; i++) {
struct rowset rowi = bl->rows[i];
//printf("%s:%d extractor finishing index %d with %ld rows\n", __FILE__, __LINE__, i, rows->n_rows);
ra[i] = cilk_spawn sort_and_write_rows(rowi, &(bl->fs[i]), bl, i, bl->dbs[i], bl->bt_compare_funs[i]);
ra[i] = sort_and_write_rows(bl->rows[i], &(bl->fs[i]), bl, i, bl->dbs[i], bl->bt_compare_funs[i]);
zero_rowset(&bl->rows[i]);
}
// Implicit cilk_sync after that cilk_for loop.
......
Markdown is supported
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