https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115740

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Lockal from comment #6)
> 2) Specifically clang dislikes calls to host code from device code

THERE IS NO device or host code in libstdc++. That in itself a hack on how
cuda/ROCm are hacked on. It just happens that you are using std::clamp inside
device code which might not be a valid thing anyways as it is not marked as
either host or device ...

This whole thing feels like a hack on how this works from the front-end rather
than doing stuff in the middle-end and outlining it there.


SEE https://github.com/llvm/llvm-project/issues/49727 and PR 100676 previous
issues in this abuse of C++ code.

Reply via email to