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: [email protected]
Reporter: [email protected]
CC: [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs