summaryrefslogtreecommitdiff
path: root/include/phat/algorithms/chunk_reduction.h
diff options
context:
space:
mode:
authorjan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2014-04-29 09:14:20 +0000
committerjan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d>2014-04-29 09:14:20 +0000
commitfe4b78f9280469f9f99836a8c0c9c1ee140825c6 (patch)
tree999ab5182118fcac2f8f31cc4e5db783142285ee /include/phat/algorithms/chunk_reduction.h
parent7d7a7fbca61da76c423d2fb73857ad8f1c7abd56 (diff)
switched num chunks to num threads in chunk_reduction.h and spectral_sequence_reduction.h
git-svn-id: https://phat.googlecode.com/svn/trunk@162 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
Diffstat (limited to 'include/phat/algorithms/chunk_reduction.h')
-rw-r--r--include/phat/algorithms/chunk_reduction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/phat/algorithms/chunk_reduction.h b/include/phat/algorithms/chunk_reduction.h
index 51460c2..0e096b5 100644
--- a/include/phat/algorithms/chunk_reduction.h
+++ b/include/phat/algorithms/chunk_reduction.h
@@ -39,8 +39,8 @@ namespace phat {
std::vector < column_type > column_type( nr_columns, GLOBAL );
std::vector< char > is_active( nr_columns, false );
- const index chunk_size = (index) sqrt( (double)nr_columns );
- //const index chunk_size = nr_columns / omp_get_max_threads( );
+ //const index chunk_size = (index) sqrt( (double)nr_columns );
+ const index chunk_size = nr_columns / omp_get_max_threads( );
std::vector< index > chunk_boundaries;
for( index cur_boundary = 0; cur_boundary < nr_columns; cur_boundary += chunk_size )