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

[GPU] Disable prefetching for loops with no computation #19695

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

nirvedhmeshram
Copy link
Contributor

@nirvedhmeshram nirvedhmeshram commented Jan 14, 2025

There is no point in prefetching if you dont have any compute ops in the loop.
Currently attempting this is leading to a bug described in #19612
The proposed solution implemented in this PR is if the loop has no compute ops then bail out.
Fixes : #19612

@nirvedhmeshram nirvedhmeshram changed the title [GPU] Disable prefetching for copy-back loops with no computation [GPU] Disable prefetching for loops with no computation Jan 14, 2025
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

Good catch

Signed-off-by: Nirvedh Meshram <[email protected]>
@nirvedhmeshram nirvedhmeshram merged commit 21b0101 into iree-org:main Jan 14, 2025
37 checks passed
@nirvedhmeshram nirvedhmeshram deleted the prefetch_issue branch January 14, 2025 03:10
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.

TileAndFuse with c promotion gives shifted results when lowering matmul+elementwise
2 participants