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 vector version and arrays of extended precision types #2445
Is your feature request related to a problem? Please describe.
bit_cast is now compatible with __half, __nv_bfloat16#2422.
It would be also useful to support __half2, __nv_bfloat162, and array types __half array[4], and cuda::std::array<__half, 4>
Describe the solution you'd like
auto x1 = bit_cast<__half2>(v1);
auto x2 = bit_cast<cuda::std::array<__half, 4>>(v2);
Activity
fbusato commentedon May 13, 2026
closed by
cuda::is_trivially_copyable