Skip to content

[CIR][CUDA] Fix destructor behaviour #1422

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

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Conversation

AdUhTkJm
Copy link
Contributor

CIR didn't work on structs with destructor but without constructor. Now it is fixed.

Moreover, CUDA kernels must be emitted if it was referred to in the destructor of a non-device variable. It seems already working, so I just unblocked the code path.

@bcardosolopes
Copy link
Member

I'll merge after conflict resolution!

@bcardosolopes bcardosolopes merged commit 994dee0 into llvm:main Mar 4, 2025
6 checks passed
bcardosolopes added a commit that referenced this pull request Mar 6, 2025
lanza pushed a commit that referenced this pull request Mar 18, 2025
CIR didn't work on structs with destructor but without constructor. Now
it is fixed.

Moreover, CUDA kernels must be emitted if it was referred to in the
destructor of a non-device variable. It seems already working, so I just
unblocked the code path.
lanza pushed a commit that referenced this pull request Mar 18, 2025
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