struct representing ocp fp8 numbers with e5m2 interpretation
More...
#include <amd_hip_fp8.h>
struct representing ocp fp8 numbers with e5m2 interpretation
◆ __hip_fp8_e5m2() [1/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const long int | val | ) |
|
|
inline |
create fp8 e5m2 type from long
◆ __hip_fp8_e5m2() [2/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const int | val | ) |
|
|
inline |
create fp8 e5m2 type from int
◆ __hip_fp8_e5m2() [3/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const short int | val | ) |
|
|
inline |
create fp8 e5m2 type from short int
◆ __hip_fp8_e5m2() [4/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const unsigned long int | val | ) |
|
|
inline |
create fp8 e5m2 type from unsigned long
◆ __hip_fp8_e5m2() [5/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const unsigned int | val | ) |
|
|
inline |
create fp8 e5m2 type from unsigned int
◆ __hip_fp8_e5m2() [6/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const unsigned short int | val | ) |
|
|
inline |
create fp8 e5m2 type from unsigned short
◆ __hip_fp8_e5m2() [7/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const double | f | ) |
|
|
inline |
create fp8 e5m2 type from double
◆ __hip_fp8_e5m2() [8/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const float | f | ) |
|
|
inline |
create fp8 e5m2 type from float
◆ __hip_fp8_e5m2() [9/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const __hip_bfloat16 | f | ) |
|
|
inline |
create fp8 e5m2 type from __hip_bfloat16
◆ __hip_fp8_e5m2() [10/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
const __half | f | ) |
|
|
inline |
create fp8 e5m2 type from __hip_bfloat16
◆ __hip_fp8_e5m2() [11/11]
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::__hip_fp8_e5m2 |
( |
| ) |
|
|
default |
default construct fp8 e5m2
◆ operator __half()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator __half |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to __half
◆ operator __hip_bfloat16()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator __hip_bfloat16 |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to __hip_bfloat16
◆ operator bool()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator bool |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to bool, return false if value is 0, true otherwise
◆ operator char()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator char |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to char, clamp out of bound values, return 0 if value is NaN
◆ operator double()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator double |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to double
◆ operator float()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator float |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to float
◆ operator int()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator int |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to int, return 0 if value is NaN
◆ operator long int()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator long int |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to long, return 0 if value is NaN
◆ operator long long int()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator long long int |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to long long, return 0 if value is NaN
◆ operator short int()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator short int |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to short, clamp out of bound values, return 0 if value is NaN
◆ operator signed char()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator signed char |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to signed char, clamp out of bound values, return 0 if value is NaN
◆ operator unsigned char()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator unsigned char |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to unsigned char, clamp out of bound values, return 0 if value is NaN
◆ operator unsigned int()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator unsigned int |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to unsigned int, return 0 if value is NaN
◆ operator unsigned long int()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator unsigned long int |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to unsigned long, return 0 if value is NaN
◆ operator unsigned long long int()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator unsigned long long int |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to unsigned long long, return 0 if value is NaN
◆ operator unsigned short int()
__FP8_HOST_DEVICE__ __hip_fp8_e5m2::operator unsigned short int |
( |
| ) |
const |
|
inline |
convert fp8 e5m2 to unsigned short, return 0 if value is NaN
The documentation for this struct was generated from the following file:
- /builddir/build/BUILD/rocclr-6.3.0-build/clr-rocm-6.3.0/hipamd/include/hip/amd_detail/amd_hip_fp8.h