12.8. __nv_bfloat16_raw

struct __nv_bfloat16_raw

__nv_bfloat16_raw data type

Type allows static initialization of nv_bfloat16 until it becomes a builtin type.

  • Note: this initialization is as a bit-field representation of nv_bfloat16, and not a conversion from short to nv_bfloat16. Such representation will be deprecated in a future version of CUDA.

  • Note: this is visible to non-nvcc compilers, including C-only compilations

Public Members

unsigned short x

Storage field contains bits representation of the nv_bfloat16 floating-point number.