Should NVPTX kernel functions be callable? #121655
Labels
backend:NVPTX
question
A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
If we attempt to call an
amdgpu_kernel
function from a device function, the LLVM backend will reject this, as entry points for host calls are not meant to be entered again by the device functions. If we attempt to call aptx_kernel
function from a device function using LLVMIR, however, it seems to compile fine. Is this an intentional difference due to a runtime distinction, or is this just erroneous behavior that the backend nonetheless accepts because LLVM prefers to comply with requests to generate code, no matter how completely nonsensical they might be?The text was updated successfully, but these errors were encountered: