2.11. __nv_fp8x2_e4m3 Struct Reference

[C++ struct for handling vector type of two fp8 values of e4m3 kind.]

This structure implements the datatype for storage and operations on the vector of two fp8 values of e4m3 kind each: with 1 sign, 4 exponent, 1 implicit and 3 explicit mantissa bits. The encoding doesn't support Infinity. NaNs are limited to 0x7F and 0xFF values.

Public Constructors

__host____device__ ​ __nv_fp8x2_e4m3 ( const double2 f )
__host____device__ ​ __nv_fp8x2_e4m3 ( const float2 f )
__host____device__ ​ __nv_fp8x2_e4m3 ( const __nv_bfloat162 f )
__host____device__ ​ __nv_fp8x2_e4m3 ( const __half2 f )
 __nv_fp8x2_e4m3 ( )

Public Member Functions

__host____device__ ​  operator __half2 ( ) const
__host____device__ ​  operator float2 ( ) const

Public Variables

__nv_fp8x2_storage_t __x

Constructors

__host____device____nv_fp8x2_e4m3::__nv_fp8x2_e4m3 ( const double2 f ) [inline, explicit]
Description

Constructor from double2 data type, relies on __NV_SATFINITE behavior for out-of-range values.

__host____device____nv_fp8x2_e4m3::__nv_fp8x2_e4m3 ( const float2 f ) [inline, explicit]
Description

Constructor from float2 data type, relies on __NV_SATFINITE behavior for out-of-range values.

__host____device____nv_fp8x2_e4m3::__nv_fp8x2_e4m3 ( const __nv_bfloat162 f ) [inline, explicit]
Description

Constructor from __nv_bfloat162 data type, relies on __NV_SATFINITE behavior for out-of-range values.

__host____device____nv_fp8x2_e4m3::__nv_fp8x2_e4m3 ( const __half2 f ) [inline, explicit]
Description

Constructor from __half2 data type, relies on __NV_SATFINITE behavior for out-of-range values.

__nv_fp8x2_e4m3::__nv_fp8x2_e4m3 ( )
Description

Constructor by default.

Member Functions

__host____device____nv_fp8x2_e4m3::operator __half2 ( ) const [inherited, inline]
Description

Conversion operator to __half2 data type.

__host____device____nv_fp8x2_e4m3::operator float2 ( ) const [inherited, inline]
Description

Conversion operator to float2 data type.

Variables

__nv_fp8x2_storage_t__nv_fp8x2_e4m3::__x [inherited]

Storage variable contains the vector of two fp8 floating-point data values.