HIP: Heterogenous-computing Interface for Portability
Loading...
Searching...
No Matches
__hip_fp8x2_e4m3 Struct Reference

struct representing two ocp fp8 numbers with e4m3 interpretation More...

#include <amd_hip_fp8.h>

Public Member Functions

__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3 (const double2 val)
 
__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3 (const float2 val)
 
__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3 (const __hip_bfloat162 val)
 
__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3 (const __half2 val)
 
__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3 ()=default
 
__FP8_HOST_DEVICE__ operator __half2 () const
 
__FP8_HOST_DEVICE__ operator float2 () const
 

Public Attributes

__hip_fp8x2_storage_t __x
 

Static Public Attributes

static constexpr __hip_saturation_t __default_saturation = __HIP_SATFINITE
 raw storage of two fp8 numbers
 
static constexpr __hip_fp8_interpretation_t __default_interpret = __HIP_E4M3
 
static constexpr unsigned int __we = 4
 
static constexpr unsigned int __wm = 3
 

Detailed Description

struct representing two ocp fp8 numbers with e4m3 interpretation

Constructor & Destructor Documentation

◆ __hip_fp8x2_e4m3() [1/5]

__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3::__hip_fp8x2_e4m3 ( const double2 val)
inline

create fp8x2 e4m3 type from double2

◆ __hip_fp8x2_e4m3() [2/5]

__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3::__hip_fp8x2_e4m3 ( const float2 val)
inline

create fp8x2 e4m3 type from float2

◆ __hip_fp8x2_e4m3() [3/5]

__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3::__hip_fp8x2_e4m3 ( const __hip_bfloat162 val)
inline

create fp8x2 e4m3 type from __hip_bfloat162

◆ __hip_fp8x2_e4m3() [4/5]

__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3::__hip_fp8x2_e4m3 ( const __half2 val)
inline

create fp8x2 e4m3 type from __half2

◆ __hip_fp8x2_e4m3() [5/5]

__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3::__hip_fp8x2_e4m3 ( )
default

Default construct of fp8x2 e4m3

Member Function Documentation

◆ operator __half2()

__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3::operator __half2 ( ) const
inline

convert fp8x2 e4m3 to __half2

◆ operator float2()

__FP8_HOST_DEVICE__ __hip_fp8x2_e4m3::operator float2 ( ) const
inline

convert fp8x2 e4m3 to float2


The documentation for this struct was generated from the following file: