Skip to content

Add support for template kernels in HIP#366

Open
stijnh wants to merge 1 commit intomasterfrom
hip-template-kernels
Open

Add support for template kernels in HIP#366
stijnh wants to merge 1 commit intomasterfrom
hip-template-kernels

Conversation

@stijnh
Copy link
Member

@stijnh stijnh commented Mar 16, 2026

This PR implements support for template kernels in the HIP backend.

hiprtc has official support for templated kernels by using hiprtcAddNameExpression in combination with hiprtcGetLoweredName. With this PR, template kernels, kernels inside namespaces, or kernels that have exotic C++ signatures are now supported.

This PR also removes the wrap_templated_kernel and extern "C" hacks from the HIP backend, as they are no longer needed and had some edge cases.

@sonarqubecloud
Copy link

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