You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy-paste-able text for documentation (I don't know where to put it):
Using constexpr from device functions
-------------------------------------
When calling a ``constexpr`` function from inside a device function, also mark the called function as a device function, e.g. by prepending ``ALPAKA_FN_ACC``.
Note that some compilers do that by default, but not all.
For details please refer to `#1580 <https://github.com/alpaka-group/alpaka/issues/1580>`_ .
Dear Maintainers,
when I refer to a C++
constexpr
function from inside a (inline-) device function, should I mark theconstexpr
as a device function as well?In a short discussion @j-stephan noted that this (probably) depends on the used compiler.
Apart from the question: Where/How should this be noted in the documentation?
I'd suggest a Notes/Misc/Q&A section, but I haven't found any.
The text was updated successfully, but these errors were encountered: