15.3.__half2_raw

struct__half2_raw

__half2_raw data type

Type allows static initialization ofhalf2 until it becomes a built-in type.

  • Note: this initialization is as a bit-field representation ofhalf2, and not a conversion fromshort2 tohalf2. 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

unsignedshortx

Storage field contains bits of the lowerhalf part.

unsignedshorty

Storage field contains bits of the upperhalf part.