Skip to content

Add getAppStyleHAL() callback to the HAL device-offload plugin#73

Open
meghnakon wants to merge 1 commit into
Xilinx:2026.1from
meghnakon:2026.1
Open

Add getAppStyleHAL() callback to the HAL device-offload plugin#73
meghnakon wants to merge 1 commit into
Xilinx:2026.1from
meghnakon:2026.1

Conversation

@meghnakon
Copy link
Copy Markdown
Collaborator

Expose the current XDP AppStyle (LOAD_XCLBIN vs REGISTER_XCLBIN) so the XRT shim layer can check which application flow XDP was configured for.
Currently, the shim destructor unconditionally invokes the device-offload flush, but in the REGISTER_XCLBIN flow the plugin expects a hw_context_impl* and receives a xocl::shim* instead, causing a segfault on application exit. Exposing the AppStyle lets the shim safely skip that duplicate flush, since the hw_context_impl destructor already handles it correctly.

CR-1269493

Signed-off-by: meghnakon <meghnak@xsjmeghnak40x.amd.com>
@jvillarre jvillarre self-requested a review May 21, 2026 23:42
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.

1 participant