Skip to content

Fix issue 77 #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 3, 2018
Merged

Fix issue 77 #78

merged 2 commits into from
Dec 3, 2018

Conversation

maarzt
Copy link
Contributor

@maarzt maarzt commented Dec 3, 2018

Fix #77

Executors.newCachedThreadPool().getMaximumPoolSize() return Integer.MAX_VALUE.
This caused some problems (number overflow) trying to parallelize Gauss convolution.
This PR makes some changes that improve the code for parallelization when the number
of threads is very high.

See #77

Maximum pool size for Executors.newCachedThreadPool() is Integer.MAX_VALUE.
This is not useful, when you want to decide, on how many threads a task
should be distributed.
Use the number of available processor as an upper limit in that case.
See #77

Fix problems when number of tasks is very high.
@tpietzsch tpietzsch merged commit d9c2893 into master Dec 3, 2018
@ctrueden ctrueden deleted the fix-issue-77 branch December 3, 2018 18:00
ctrueden added a commit to scijava/pom-scijava that referenced this pull request Dec 3, 2018
This version fixes a bug (introduced in 0.11.0) in thread allocation,
that broke things including the HessianMatrix.calculateMatrix method.
See imglib/imglib2-algorithm#77 and imglib/imglib2-algorithm#78.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants