Skip to content

Conversation

RossBrunton
Copy link
Contributor

The argument bundle to liboffload is a C-style struct, which has
alignment requirements on fields. Previously, we weren't handling this
properly. This patch adds a "realise" step which plots all the arguments
into a properly aligned struct.

The argument bundle to liboffload is a C-style struct, which has
alignment requirements on fields. Previously, we weren't handling this
properly. This patch adds a "realise" step which plots all the arguments
into a properly aligned struct.
@RossBrunton RossBrunton requested a review from a team as a code owner September 26, 2025 13:08

// Simplified version of the CUDA adapter's argument implementation
struct OffloadKernelArguments {
struct alignas(32) OffloadKernelArguments {
Copy link
Contributor

@pbalcer pbalcer Sep 26, 2025

Choose a reason for hiding this comment

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

I'm not sure I understand what this is for. Is this what CUDA/HIP drivers expect? Shouldn't we move this requirement/functionality into the plugins?

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