1.1.3. C++ struct for handling vector type of two fp8 values of e5m2 kind.

[FP8 Intrinsics]

Classes

struct 
__nv_fp8x2_e5m2 datatype

Functions

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

Variables

__nv_fp8x2_storage_t __nv_fp8x2_e5m2::__x

Functions

__host____device__ ​ __nv_fp8x2_e5m2::__nv_fp8x2_e5m2 ( const double2 f ) [inline]
Description

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

__host____device__ ​ __nv_fp8x2_e5m2::__nv_fp8x2_e5m2 ( const float2 f ) [inline]
Description

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

__host____device__ ​ __nv_fp8x2_e5m2::__nv_fp8x2_e5m2 ( 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_e5m2::__nv_fp8x2_e5m2 ( const __half2 f ) [inline]
Description

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

__nv_fp8x2_e5m2::__nv_fp8x2_e5m2 ( )
Description

Constructor by default.

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

Conversion operator to __half2 data type.

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

Conversion operator to float2 data type.

Variables

__nv_fp8x2_storage_t __nv_fp8x2_e5m2::__x

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