Files
tilelang/testing/python/language
Chennes d34109aeb6 [BugFix] Fix vectorized fp16<->bf16 cast compilation (#2407)
A vectorized T.copy between fp16 and bf16 failed to compile. The CUDA
cast codegen has dedicated vectorized branches for fp16<->fp32,
bf16<->fp32, fp8 and fp4, but none for fp16<->bf16, so it fell into the
elementwise fallback. There the lanes load as native __half/__nv_bfloat16,
and a direct (half_t)(__nv_bfloat16) (or reverse) is an ambiguous
user-defined conversion, breaking the build.

Route cross-half elementwise casts through float to disambiguate, and
add a cross-dtype copy regression test for both directions.

Fixes #2385
2026-06-17 13:44:36 +08:00
..