3.120. __nv_float2half_rn

原型:

i16 @__nv_float2half_rn(float %f) 

描述:

将单精度浮点值x转换为半精度浮点值,以unsigned short格式表示,采用舍入到最近偶数模式。

返回值

返回转换后的值。

库可用性:

Compute 2.0:是

Compute 3.0:是

Compute 3.5:是