-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
NVPTX: non-inlined functions can't be used cross crate #38787
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.
Or all functions should be "inlined" for the nvptx targets
STR
Note that
fooappears as undefined (.extern .func) in the PTX module.Workaround
Mark
lib::fooas#[inline]. Then you'll get the translation offooin the final PTX module: