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

[FP8 Intrinsics]

Classes

struct 
__nv_fp8x2_e4m3 datatype

Functions

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

Variables

__nv_fp8x2_storage_t __nv_fp8x2_e4m3::__x

Functions

__host____device__ ​ __nv_fp8x2_e4m3::__nv_fp8x2_e4m3 ( const double2 f ) [inline]
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]
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]
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]
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.

__host____device__ ​ __nv_fp8x2_e4m3::operator __half2 ( ) const [inline]
Description

Conversion operator to __half2 data type.

__host____device__ ​ __nv_fp8x2_e4m3::operator float2 ( ) const [inline]
Description

Conversion operator to float2 data type.

Variables

__nv_fp8x2_storage_t __nv_fp8x2_e4m3::__x

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