Skip to content

Conversation

@kekaczma
Copy link
Contributor

No description provided.

In SYCL offload compilation, when the host uses Microsoft ABI and the
device uses Itanium ABI (e.g., Windows host with CUDA device), kernel
names were mangled differently between host and device code, causing
runtime errors when the host tried to find kernels by name.

This fix ensures consistent mangling by using the device's mangling
context when compiling for cross-ABI scenarios. The logic is implemented
in SYCL-specific code (SemaSYCL.cpp) to avoid adding SYCL-specific code
to general Clang infrastructure.

Removes XFAIL from Printf tests that were failing due to this issue.
Fixes #14733.
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