summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/phat/algorithms/chunk_reduction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/phat/algorithms/chunk_reduction.h b/include/phat/algorithms/chunk_reduction.h
index ebba266..5c927d7 100644
--- a/include/phat/algorithms/chunk_reduction.h
+++ b/include/phat/algorithms/chunk_reduction.h
@@ -107,7 +107,12 @@ namespace phat {
std::vector<index> temp_chunk_boundaries;
const index nr_columns = boundary_matrix.get_num_cols();
+ // size of chuks = sqrt(N)
const index chunk_size = (index) sqrt( (float)nr_columns );
+
+ // size of chunks = N / num_threads
+ //const index chunk_size = nr_columns / omp_get_max_threads();
+
for ( index cur_col = 0; cur_col < nr_columns; cur_col++ )
if( cur_col % chunk_size == 0 )
temp_chunk_boundaries.push_back( cur_col );