struct representing ocp fp8 numbers with e4m3 interpretation
More...
#include <amd_hip_fp8.h>
struct representing ocp fp8 numbers with e4m3 interpretation
◆ __hip_fp8_e4m3() [1/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const long int | val | ) |
|
|
inline |
create fp8 e4m3 from long
◆ __hip_fp8_e4m3() [2/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const int | val | ) |
|
|
inline |
◆ __hip_fp8_e4m3() [3/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const short int | val | ) |
|
|
inline |
create fp8 e4m3 from short int
◆ __hip_fp8_e4m3() [4/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const unsigned long int | val | ) |
|
|
inline |
create fp8 e4m3 from unsigned long
◆ __hip_fp8_e4m3() [5/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const unsigned int | val | ) |
|
|
inline |
create fp8 e4m3 from unsigned int
◆ __hip_fp8_e4m3() [6/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const unsigned short int | val | ) |
|
|
inline |
create fp8 e4m3 from unsigned short
◆ __hip_fp8_e4m3() [7/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const double | f | ) |
|
|
inline |
create fp8 e4m3 from double
◆ __hip_fp8_e4m3() [8/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const float | f | ) |
|
|
inline |
create fp8 e4m3 from float
◆ __hip_fp8_e4m3() [9/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const __hip_bfloat16 | f | ) |
|
|
inline |
create fp8 e4m3 from __hip_bfloat16
◆ __hip_fp8_e4m3() [10/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
const __half | f | ) |
|
|
inline |
create fp8 e4m3 from __half
◆ __hip_fp8_e4m3() [11/11]
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::__hip_fp8_e4m3 |
( |
| ) |
|
|
default |
default construct fp8 e4m3
◆ operator __half()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator __half |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to __half
◆ operator __hip_bfloat16()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator __hip_bfloat16 |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to __hip_bfloat16
◆ operator bool()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator bool |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to bool, return false if value is 0, true otherwise
◆ operator char()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator char |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to char, clamp number to __HIP_CHAR_MIN/__HIP_CHAR_MAX if its out of range
◆ operator double()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator double |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to double
◆ operator float()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator float |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to float
◆ operator int()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator int |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to int, return 0 if value is NaN
◆ operator long int()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator long int |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to long, return 0 if value is NaN
◆ operator long long int()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator long long int |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to long long, return 0 if value is NaN
◆ operator short int()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator short int |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to short int, clamp out of bound values, return 0 if value is NaN
◆ operator signed char()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator signed char |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to signed char, clamp out of bound values, return 0 if value is NaN
◆ operator unsigned char()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator unsigned char |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to unsigned char, clamp out of bound values, return 0 if value is NaN
◆ operator unsigned int()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator unsigned int |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to unsigned int, return 0 if value is NaN
◆ operator unsigned long int()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator unsigned long int |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to unsigned long, return 0 if value is NaN
◆ operator unsigned long long int()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator unsigned long long int |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 to long long int, return 0 if value is NaN
◆ operator unsigned short int()
__FP8_HOST_DEVICE__ __hip_fp8_e4m3::operator unsigned short int |
( |
| ) |
const |
|
inline |
convert fp8 e4m3 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