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

Fixup AIRRtToIpuPass wrap tiling, if wrap is larger than 1023 but not divisible by 512 #544

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

erwei-xilinx
Copy link
Collaborator

No description provided.

@erwei-xilinx erwei-xilinx requested review from fifield and newling April 23, 2024 00:20
@erwei-xilinx erwei-xilinx merged commit 0b3ba11 into Xilinx:main Apr 23, 2024
9 checks passed
@erwei-xilinx erwei-xilinx deleted the fixup_airrt_to_ipu_wrap_tiling branch April 23, 2024 03:21
@@ -531,6 +531,19 @@ bool violatesAIE2WrapLimit(airrt::DmaMemcpyNdOp dma) {
return false;
}

// A naive implementation to find largest factor, smaller than a given int, for
// a given integer.
int getLargestFactorSmallerThan(int inputInt, int smallerThanInt = 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah that is great! Thanks!

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.

2 participants