Skip to content

Avoid unnecessary kernel copies in DomainChanger.get_kernel_with#1026

Merged
inducer merged 1 commit into
inducer:mainfrom
majosm:optimize-domain-changer-unchanged
Jul 21, 2026
Merged

Avoid unnecessary kernel copies in DomainChanger.get_kernel_with#1026
inducer merged 1 commit into
inducer:mainfrom
majosm:optimize-domain-changer-unchanged

Conversation

@majosm

@majosm majosm commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Avoids copying the kernel when get_kernel_with is called with a domain that is unchanged. I'm seeing this happen a lot specifically in intersect_kernel_with_slab.

@inducer Here's a breakdown of how much each of the changes I made contributes to the total time difference. I'll submit PRs for the other changes after this.

mg_loopy_optimizations

@inducer
inducer merged commit 1a877de into inducer:main Jul 21, 2026
17 checks passed
@inducer

inducer commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Thx!

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