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
{{ message }}
Repository navigation
[FEA]: make bit_cast compatible with raw narrow precision types #2422
Is your feature request related to a problem? Please describe.
__half, __half2, __nv_bfloat16, __nv_bfloat162 are not trivially copyable and, for this reason, bit_cast doesn't support them.
Looking at their implementations, they are simply defined on top of an unsigned short. There is no special semantic. Only the interface definition prevents a trivial copy.
Describe the solution you'd like
extend bit_cast to support narrow precision types. If not possible in cuda::std, I would propose another version in cuda::
That is definitely something we can and maybe should support. I believe we should reorganize our extended floating point support a bit because we are accumulating more and more special treatment for those
Activity
miscco commentedon Sep 19, 2024
That is definitely something we can and maybe should support. I believe we should reorganize our extended floating point support a bit because we are accumulating more and more special treatment for those