intel / llvm

Intel staging area for llvm.org contribution. Home for Intel LLVM-based projects.
Other
1.26k stars 740 forks source link

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

Open lbushi25 opened 1 week ago

lbushi25 commented 1 week ago

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(https://github.com/intel/llvm/pull/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

Additional context

No response

tahonermann commented 4 days ago

@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.