Skip to content
Snippets Groups Projects
Commit 650de88e authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Formatting and remove debug

parent d3bda985
No related branches found
No related tags found
1 merge request!1224Make the threadpool honour the int argument for number of elements to process
...@@ -149,10 +149,7 @@ static void threadpool_chomp(struct threadpool *tp, int tid) { ...@@ -149,10 +149,7 @@ static void threadpool_chomp(struct threadpool *tp, int tid) {
if (chunk_size < 1) chunk_size = 1; if (chunk_size < 1) chunk_size = 1;
/* A chunk cannot exceed INT_MAX, as we use int elements in map_function. */ /* A chunk cannot exceed INT_MAX, as we use int elements in map_function. */
if (chunk_size > INT_MAX) { if (chunk_size > INT_MAX) chunk_size = INT_MAX;
chunk_size = INT_MAX;
. message("chunking down to INT_MAX");
}
/* Get a chunk and check its size. */ /* Get a chunk and check its size. */
size_t task_ind = atomic_add(&tp->map_data_count, chunk_size); size_t task_ind = atomic_add(&tp->map_data_count, chunk_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment