Skip to content

Fix codegen for temporary variables declaration#738

Closed
kaushikcfd wants to merge 2 commits intomainfrom
fix_737
Closed

Fix codegen for temporary variables declaration#738
kaushikcfd wants to merge 2 commits intomainfrom
fix_737

Conversation

@kaushikcfd
Copy link
Collaborator

Closes #737

Comment on lines -909 to +907
tv.name in sub_knl_temps):
if tv.address_space != AddressSpace.GLOBAL:
Copy link
Owner

Choose a reason for hiding this comment

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

Not loving this change, as it just dumps all temporaries in all subkernels no matter what, whether they're used or not. sub_knl_temps would be unused/pointless after this. Closing in favor of #741 (or a version of it).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The bounds of the loop had changed, but #741 is better as it fixes some more typos. I'm fine with closing this one.

Copy link
Owner

Choose a reason for hiding this comment

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

Agreed. I had missed that the iterable of the for loop had changed. Sorry!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No worries at all! :)

@inducer inducer closed this Jan 19, 2023
@inducer inducer deleted the fix_737 branch January 19, 2023 01:15
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.

[bug] Incorrect codegen for global temporaries with base storages

2 participants