3.120. __nv_float2half_rn

Prototype:

i16 @__nv_float2half_rn(float %f) 

Description:

Convert the single-precision float value x to a half-precision floating point value represented in unsigned short format, in round-to-nearest-even mode.

Returns:

Returns converted value.

Library Availability:

Compute 2.0: Yes

Compute 3.0: Yes

Compute 3.5: Yes