Optimise isCommonBins to speed up flaky ILL system test#40886
Draft
Optimise isCommonBins to speed up flaky ILL system test#40886
Conversation
ce5393b to
f58abb0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of work
ILLDirectGeometryReductionTestis currently flaky on Windows. Whilst investigating this, it was noted that the test takes ~ 1 minute on unix systems and > 15 minutes on Windows. This seems to be a likely candidate for the test unreliability, though this is not certain.It was discovered that that majority of the extra time is spend in the function
isCommonBins, which runs in a heavily looped and parallelised sequence.To improve this I have
isCommonBinsflag, whilst the function itself computing an updated value. The setting of theisValidflag has been moved to after the setting of theisCommonBinsflag to alleviate this issue. The mutex is now largely in place to prevent duplicated effort checking the bin values.std::isnan,std::isinfandstd::isfinineare bizarrely the root cause.Windows test: https://builds.mantidproject.org/job/build_branch/1477/
Closes #xxxx.
To test:
See tests pass, including windows system test.
Reviewer
Your comments will be used as part of the gatekeeper process. Comment clearly on what you have checked and tested during your review. Provide an audit trail for any changes requested.
As per the review guidelines:
mantid-developersormantid-contributorsteams, add a review commentrerun cito authorize/rerun the CIGatekeeper
As per the gatekeeping guidelines: