[llvm-bugs] [Bug 50505] New: -fno-cuda-host-device-constexpr not supported?
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 27 04:48:57 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50505
Bug ID: 50505
Summary: -fno-cuda-host-device-constexpr not supported?
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: CUDA
Assignee: unassignedclangbugs at nondot.org
Reporter: carlosgalvezp at gmail.com
CC: llvm-bugs at lists.llvm.org
Hi,
We are compiling CUDA code with clang 12
(12.0.0~%2b%2b20210319082650%2b4990141a4366-1~exp1~20210319193429.62), and get
the following error:
error: constexpr function 'foo' without __host__ or __device__ attributes
cannot overload __device__ function with same signature. Add a __host__
attribute, or build with -fno-cuda-host-device-constexpr.
[clang-diagnostic-error]
So we try to add "-fno-cuda-host-device-constexpr" when building, but it seems
to be unsupported:
clang: error: unknown argument: '-fno-cuda-host-device-constexpr'
What should we use instead?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210527/2833f040/attachment.html>
More information about the llvm-bugs
mailing list