-
Notifications
You must be signed in to change notification settings - Fork 9
Clip: Fix cellOffset increment #104
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
Clip: Fix cellOffset increment #104
Conversation
In GenerateCellSet, if the cell was kept, we forgot to increment the cellOffset, which lead to writing the types and offsets at the wrong memory location. We also made sure that all offset increments are correct and documented.
ScanExclusive can only be executed only on filled batches instead of all batches, using the output to input map from mask select
The ScanExclusive changes are currently tested on Frontier to check if they are useful or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good assuming the CI passes.
Did you diagnose why the indexing error did not show up as missing cells in the testing output?
@kmorel the indexing failure was not caught because the UnitTestClipWithFieldFilter.cxx/UnitTestClipWithImplicitFunctionFilter.cxx check only for the number of cells/points/fields, and some scalar values. They don't check cell types or offsets. |
That makes sense. I was just surprised this didn't show up in any renderings. The Ascent folks used the clip in their renderings and didn't see missing or malformed cells. |
@spyridon97 Does GitHub give you permissions to merge this PR, or do I need to do it? |
I get "You're not authorized to push to this branch. Visit https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches for more information." |
That's fine. I merged this. |
I think i was given Triage rights when you invited me to the project. |
That is correct. With the added formality of the charter document with the LF, I'm trying to limit the number of people with write access. I just wasn't sure if GitHub allowed you to merge a PR once all the requirements are met. I guess you need permission to write to protected branches for that. |
There was bug in the newly redesigned Clip filter that caused the cellOffset to not be incremented,
cause output cells to be incorrectly placed in the output. This has now been fixed, and the output.
Additionally, all resources are released as soon as possible.
Finally, the ScanExclusive usages within the Clip filter have been improved to operate
only on the batches of points/cells that are actually needed, rather than the entire batch data.