HIP: Heterogenous-computing Interface for Portability
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
__hip_fp8x4_e4m3_fnuz Struct Reference

struct representing four fp8 numbers with e4m3 interpretation More...

#include <amd_hip_fp8.h>

Public Member Functions

__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz (const double4 val)
 
__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz (const float4 val)
 
__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz (const __hip_bfloat162 low, const __hip_bfloat162 high)
 
__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz (const __half2 low, const __half2 high)
 
__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz ()=default
 
__FP8_HOST_DEVICE__ operator float4 () const
 

Public Attributes

__hip_fp8x4_storage_t __x
 

Static Public Attributes

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

Detailed Description

struct representing four fp8 numbers with e4m3 interpretation

Constructor & Destructor Documentation

◆ __hip_fp8x4_e4m3_fnuz() [1/5]

__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz::__hip_fp8x4_e4m3_fnuz ( const double4 val)
inline

create fp8x4 e4m3 type from double4

◆ __hip_fp8x4_e4m3_fnuz() [2/5]

__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz::__hip_fp8x4_e4m3_fnuz ( const float4 val)
inline

create fp8x4 e4m3 type from float4

◆ __hip_fp8x4_e4m3_fnuz() [3/5]

__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz::__hip_fp8x4_e4m3_fnuz ( const __hip_bfloat162 low,
const __hip_bfloat162 high )
inline

create fp8x4 e4m3 type from two __hip_bfloat162

◆ __hip_fp8x4_e4m3_fnuz() [4/5]

__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz::__hip_fp8x4_e4m3_fnuz ( const __half2 low,
const __half2 high )
inline

create fp8x4 e4m3 type from two __half2

◆ __hip_fp8x4_e4m3_fnuz() [5/5]

__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz::__hip_fp8x4_e4m3_fnuz ( )
default

Default construct fp8x4 e4m3

Member Function Documentation

◆ operator float4()

__FP8_HOST_DEVICE__ __hip_fp8x4_e4m3_fnuz::operator float4 ( ) const
inline

convert fp8x4 e4m3 to float4


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