Skip to content
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

Copy wrapped border bug #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thinks
Copy link

@thinks thinks commented Aug 26, 2022

There was a bug in the way that wrapped border values were being copied. Essentially, it is necessary to make sure that the first row has had its border (padding) values copied to before setting the entire last row to be equal to the first. The way it was being done lead to cases where the first row was copied into the last before the first row had been "completed". This bug showed up intermittently, because it depends on the order in which TBB chooses to run the sub-ranges.

I made an example showing how the new algorithm works: https://godbolt.org/z/qcoEEvsKn

The only difference is to explicitly copy the first row into the last row after all the "non-last" rows have been completed.

@thinks thinks mentioned this pull request Aug 26, 2022
@thinks thinks force-pushed the copy_wrapped_border_bug branch from 3ba0fe5 to 8baad15 Compare August 29, 2022 10:34
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.

1 participant