HIP: Heterogenous-computing Interface for Portability
|
struct representing two ocp fp8 numbers with e5m2 interpretation More...
#include <amd_hip_fp8.h>
Public Member Functions | |
__FP8_HOST_DEVICE__ | __hip_fp8x2_e5m2 (const double2 val) |
__FP8_HOST_DEVICE__ | __hip_fp8x2_e5m2 (const float2 val) |
__FP8_HOST_DEVICE__ | __hip_fp8x2_e5m2 (const __hip_bfloat162 val) |
__FP8_HOST_DEVICE__ | __hip_fp8x2_e5m2 (const __half2 val) |
__FP8_HOST_DEVICE__ | __hip_fp8x2_e5m2 ()=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_E5M2 |
static constexpr unsigned int | __we = 5 |
static constexpr unsigned int | __wm = 2 |
struct representing two ocp fp8 numbers with e5m2 interpretation
|
inline |
create fp8x2 e5m2 type from double2
|
inline |
create fp8x2 e5m2 type from float2
|
inline |
create fp8x2 e5m2 type from __hip_bfloat162
|
inline |
create fp8x2 e5m2 type from __half2
|
default |
default construct fp8x2 e5m2
|
inline |
convert fp8x2 e5m2 to __half2