Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Loading of free function kernels does not work with PTX #16004

Open
lbushi25 opened this issue Nov 6, 2024 · 1 comment
Open

[SYCL] Loading of free function kernels does not work with PTX #16004

lbushi25 opened this issue Nov 6, 2024 · 1 comment
Labels
bug Something isn't working confirmed

Comments

@lbushi25
Copy link
Contributor

lbushi25 commented Nov 6, 2024

Describe the bug

The E2E tests

sycl/test-e2e/KernelAndProgram/free_function_apis.cpp
sycl/test-e2e/KernelAndProgram/free_function_kernels.cpp
sycl/test-e2e/DeviceImageDependencies/free_function_kernels.cpp

fail on CUDA and there are comments saying this is due to name mangling for free function kernels not working with PTX.
The error logs as seen in the CUDA CI run of this PR(#16081) say that an exception is thrown with a kernel not found error so this may or may not be a name mangling issue. More investigation is needed.

To reproduce

Simply run llvm-lit with the tests above on a CUDA platform. As access to a CUDA platform may be hard to get, usually I will simply submit a draft PR where I remove the UNSUPPORTED directive from one of these tests and then look at the CI results for the CUDA runner.

Environment

  • OS: Any
  • Target device and vendor: CUDA
  • DPC++ version: dc181bb (latest commit as of writing this)
  • Dependencies version: [e.g. the output of sycl-ls --verbose]

Additional context

No response

@lbushi25 lbushi25 added bug Something isn't working confirmed labels Nov 6, 2024
@tahonermann
Copy link
Contributor

@lbushi25, please rename this issue in order to prevent further confusion. As discussed elsewhere, the problem doesn't appear to be related to name mangling.

@lbushi25 lbushi25 changed the title [SYCL] Name mangling for free function kernels does not work with PTX [SYCL] Loading of free function kernels does not work with PTX Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed
Projects
None yet
Development

No branches or pull requests

2 participants