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

Prevent UB in all ASM & OCL kernels that do not anticipate asymmetric padding #341

Merged
merged 2 commits into from
Jul 15, 2020

Conversation

atamazov
Copy link
Contributor

@atamazov atamazov commented Jul 13, 2020

Resolves ASM & OCL leftovers of #142.

Disables configs that have asymmetric padding in all Solvers that do not anticipate it. See #142 (comment) for details.

Note that currently asymmetric padding is possible only for even filter sizes. However this PR affects Solvers that support odd filters as well. This is done in order to avoid adding new implicit dependencies (on how we define “asymmetric padding”).

@daniellowell
Copy link
Contributor

This sound like a bug.

@atamazov
Copy link
Contributor Author

Formally speaking, the bug is a reason of an issue. However I do not have specific issues on hand (and would like to avoid spending time for finding these). So this is not a bug fix, technically.

@TejashShah
Copy link
Contributor

@atamazov LGTM.

Copy link
Contributor

@TejashShah TejashShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atamazov What about igemm solvers?

@atamazov
Copy link
Contributor Author

@atamazov What about igemm solvers?

Out of scope of this PR

@atamazov atamazov changed the title Prevent UB in all kernels that do not anticipate asymmetric padding Prevent UB in all ASM & OCL kernels that do not anticipate asymmetric padding Jul 14, 2020
@atamazov
Copy link
Contributor Author

#142 updated with Q for @asroy

@TejashShah
Copy link
Contributor

LGTM to be merged.

@atamazov
Copy link
Contributor Author

All tests passed, ready for merge.

@daniellowell daniellowell merged commit f27fb85 into develop Jul 15, 2020
@atamazov atamazov deleted the fix-asymmetric-padding branch November 15, 2020 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants