|
HIP: Heterogenous-computing Interface for Portability
|
Functions | |
| __HOST_DEVICE__ __hip_bfloat16 | __hadd (const __hip_bfloat16 a, const __hip_bfloat16 b) |
| Adds two bfloat16 values. | |
| __HOST_DEVICE__ __hip_bfloat16 | __hsub (const __hip_bfloat16 a, const __hip_bfloat16 b) |
| Subtracts two bfloat16 values. | |
| __HOST_DEVICE__ __hip_bfloat16 | __hdiv (const __hip_bfloat16 a, const __hip_bfloat16 b) |
| Divides two bfloat16 values. | |
| __device__ __hip_bfloat16 | __hfma (const __hip_bfloat16 a, const __hip_bfloat16 b, const __hip_bfloat16 c) |
| Performs FMA of given bfloat16 values. | |
| __HOST_DEVICE__ __hip_bfloat16 | __hmul (const __hip_bfloat16 a, const __hip_bfloat16 b) |
| Multiplies two bfloat16 values. | |
| __HOST_DEVICE__ __hip_bfloat16 | __hneg (const __hip_bfloat16 a) |
| Negate a bfloat16 value. | |
| __HOST_DEVICE__ __hip_bfloat16 | __habs (const __hip_bfloat16 a) |
| Returns absolute of a bfloat16. | |
| __HOST_DEVICE__ __hip_bfloat16 | operator* (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
| Operator to multiply two __hip_bfloat16 numbers. | |
| __HOST_DEVICE__ __hip_bfloat16 & | operator*= (__hip_bfloat16 &l, const __hip_bfloat16 &r) |
| Operator to multiply-assign two __hip_bfloat16 numbers. | |
| __HOST_DEVICE__ __hip_bfloat16 | operator+ (const __hip_bfloat16 &l) |
| Operator to unary+ on a __hip_bfloat16 number. | |
| __HOST_DEVICE__ __hip_bfloat16 | operator+ (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
| Operator to add two __hip_bfloat16 numbers. | |
| __HOST_DEVICE__ __hip_bfloat16 | operator- (const __hip_bfloat16 &l) |
| Operator to negate a __hip_bfloat16 number. | |
| __HOST_DEVICE__ __hip_bfloat16 | operator- (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
| Operator to subtract two __hip_bfloat16 numbers. | |
| __HOST_DEVICE__ __hip_bfloat16 | operator++ (__hip_bfloat16 &l, const int) |
| Operator to post increment a __hip_bfloat16 number. | |
| __HOST_DEVICE__ __hip_bfloat16 & | operator++ (__hip_bfloat16 &l) |
| Operator to pre increment a __hip_bfloat16 number. | |
| __HOST_DEVICE__ __hip_bfloat16 | operator-- (__hip_bfloat16 &l, const int) |
| Operator to post decrement a __hip_bfloat16 number. | |
| __HOST_DEVICE__ __hip_bfloat16 & | operator-- (__hip_bfloat16 &l) |
| Operator to pre decrement a __hip_bfloat16 number. | |
| __HOST_DEVICE__ __hip_bfloat16 & | operator+= (__hip_bfloat16 &l, const __hip_bfloat16 &r) |
| Operator to add-assign two __hip_bfloat16 numbers. | |
| __HOST_DEVICE__ __hip_bfloat16 & | operator-= (__hip_bfloat16 &l, const __hip_bfloat16 &r) |
| Operator to subtract-assign two __hip_bfloat16 numbers. | |
| __HOST_DEVICE__ __hip_bfloat16 | operator/ (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
| Operator to divide two __hip_bfloat16 numbers. | |
| __HOST_DEVICE__ __hip_bfloat16 & | operator/= (__hip_bfloat16 &l, const __hip_bfloat16 &r) |
| Operator to divide-assign two __hip_bfloat16 numbers. | |
To use these functions, include the header file hip_bf16.h in your program.