Files
tilelang/testing/python/language
Chennes 39b3b3e5db [CUDA] Add __ldg overloads for 16-bit CUTLASS types (#3028)
T.__ldg failed to compile for float16 and bfloat16 buffers because CUDA
provides __ldg overloads for __half and __nv_bfloat16, while TileLang uses
CUTLASS half_t and bfloat16_t for these scalar types.

Add forwarding overloads in common.h that reinterpret the bit-compatible
pointers as the native CUDA types and wrap the loaded values back in the
CUTLASS types. The native 16-bit __ldg is available on SM60+, so no
architecture-specific fallback is needed.

Update the stale 32-bit-only API wording and add exact round-trip coverage
for both dtypes.
2026-08-17 14:12:52 +08:00
..