Skip to content

Conversation

Fznamznon
Copy link
Collaborator

@Fznamznon Fznamznon commented Oct 1, 2025

device-copyable doesn't mean trivially-copyable, so we may encounter arguments that need cleanup. Adds test that verifies presence of the dtor call in the synthesized code.

trivially-copyable

device-copyable doesn't mean trivially-copyable, so we may encounter
arguments that need cleanup. Adds test that verifies presence of the
dtor call in the synthesized code.
@Fznamznon
Copy link
Collaborator Author

@tahonermann

@Fznamznon Fznamznon changed the title [SYCL-Upstreaming] Fix a crash an argument of skep function is not [SYCL-Upstreaming] Fix a crash when an argument of skep function is not Oct 1, 2025
Copy link
Owner

@tahonermann tahonermann left a comment

Choose a reason for hiding this comment

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

Thanks, @Fznamznon. This looks good, at least for now. As part of the decomposition work we'll need to decide how to handle types that aren't implicitly device copyable and that don't have a specialization of the sycl::is_device_copyable trait. Regardless though, this looks like a good change to me.

@tahonermann tahonermann changed the title [SYCL-Upstreaming] Fix a crash when an argument of skep function is not [SYCL-Upstreaming] Fix a crash when an argument of skep function is not trivially-copyable Oct 1, 2025
@tahonermann tahonermann merged commit 87f0c2b into tahonermann:sycl-upstream-fe-sycl_kernel_entry_point-host Oct 1, 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