https://bugs.llvm.org/show_bug.cgi?id=50505
Artem Belevich <t...@google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #5 from Artem Belevich <t...@google.com> ---
> Do you mean if I try to use STL in CUDA?
Yes. Granted, it's a very limited subset that's usable on the GPU side, it
tends to grow as the standard library provides more constexpr APIs with new C++
versions.
> - NVCC - constexpr is not implicitly __host__ __device__, you need to opt-in
> via an experimental flag: --expt-relaxed-constexpr
Your example is not compileable with NVCC as it does not allow attribute-based
overloading. Regardless of --expt-relaxed-constexpr NVCC reports that it can't
redefine the function.
https://godbolt.org/z/1GhdfMx84
I suspect that the root cause of your issues is not whether constexpr functions
are __host__ __device__.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs