-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
NVPTX: No "undefined reference" error is raised when it should be #38786
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-NVPTXTarget: the NVPTX LLVM backend for running rust on GPUs, https://llvm.org/docs/NVPTXUsage.htmlTarget: the NVPTX LLVM backend for running rust on GPUs, https://llvm.org/docs/NVPTXUsage.html
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-NVPTXTarget: the NVPTX LLVM backend for running rust on GPUs, https://llvm.org/docs/NVPTXUsage.htmlTarget: the NVPTX LLVM backend for running rust on GPUs, https://llvm.org/docs/NVPTXUsage.html
Type
Fields
Give feedbackNo fields configured for issues without a type.
STR
Note that
baris called byfoobut it's not defined in the PTX module. Trying to load this PTX module, withcuModuleLoadData, generates a runtime error:CUDA_ERROR_NO_BINARY_FOR_GPU.Expected behavior
Other targets that produce an executable would fail to compile this with an "undefined reference" error which is actually raised by the linker. The NVPTX targets don't involve a linker but they shouldn't produce incomplete PTX modules like the one above; instead the should raise an error like the other targets do.