-
-
Notifications
You must be signed in to change notification settings - Fork 697
Test #2557: itkOptImageToImageMetricsTest04 fails on single-CPU systems #5317
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
Comments
Thank you for contributing an issue! 🙏 Welcome to the ITK community! 🤗👋☀️ We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜 This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it. |
@N-Dekker can you look into this? |
@sanvila Hi Santiago Vila! Thank you for reporting this issue! Can you please tell us if the problem still appears when you locally remove the following five lines of code from "itkOptImageToImageMetricsTest2.h"? ITK/Modules/Nonunit/Review/test/itkOptImageToImageMetricsTest2.h Lines 89 to 93 in 0751ace
For the record, these lines of code appear introduced, originally, with commit 9ba4527, March 5, 2010: ITK/Testing/Code/Review/itkOptImageToImageMetricsTest2.h Lines 88 to 93 in 9ba4527
|
I confirm that removing those lines fixes the problem! Thanks a lot! (p.s. In case you wonder: I can build 99.9% of all Debian packages using a single CPU, but Debian does not have a control field to tell the user "this package requires more than one CPU to be built", so I'm trying to close the gap). |
You're welcome, @sanvila
It's not yet official, but it's possible 😃 Another possibility could (possibly) be:
Or something else, in pseudo-code:
Is the original check still important to anyone? Otherwise it's OK to me to remove it. Please feel free to make it a pull request. |
Hi. Sorry for the late reply. Not sure if that was for me or for the other ITK authors. In case a pull request is all you need, here it is. I've put you as the commit author, since you are the one who found the fix and I'm just the bug reporter here (no need for credit, really). Feel free to change anything to adapt to any style guide which I may have missed. Thanks a lot. |
Uh oh!
There was an error while loading. Please reload this page.
Description
Every time I try to build (the Debian package of) insighttoolkit on a single-CPU system,
the test in the title fails:
This is very strange because there are more than 2500 tests and only one of them fails.
Steps to Reproduce
Build the package on a single-CPU system, including the tests.
Alternatively (if there is not a single-cpu VM available) try booting with
GRUB_CMDLINE_LINUX="nr_cpus=1"
Expected behavior
The expected behavior is that all tests pass.
Actual behavior
The actual behavior is that the tests in the title fails.
Reproducibility
The problem happens always when the tests are executed on a single-cpu system.
Versions
This has been happening at least since version 4.13.3.
The last version I tried (from the Debian package) is 5.4.3 and it still happens.
Environment
I'm using Debian unstable, but I don't think that's relevant, as the failure is very consistent regardless of everything else.
Additional Information
I'd like to know if this is a bug in the code, a bug in the test, or maybe I am expected to skip the test when building the package on a single-cpu system. For the Debian package, I already have a fix ready, involving
debian/rules
, the script controlling the build:but of course it would be a lot better if now that the problem is known this could be done by the test itself.
Thanks.
The text was updated successfully, but these errors were encountered: