Commit 274dd579 authored by Unknown's avatar Unknown
Browse files

Minimum chunk size of 1

parent 4e8b1bc6
......@@ -146,7 +146,7 @@ def recommendCores(num_jobs, requested_cores=None, lengthy_computation=False):
# Respecting the explicit request
requested_cores = min(int(abs(requested_cores)), cpu_count())
recom_chunks = int(num_jobs / requested_cores)
recom_chunks = max(int(num_jobs / requested_cores), 1)
if not lengthy_computation:
if requested_cores > 1 and recom_chunks < 10:
......
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