|
HIP: Heterogenous-computing Interface for Portability
|
Functions | |
| __device__ __hip_bfloat162 | __h2div (const __hip_bfloat162 a, const __hip_bfloat162 b) |
| Divides bfloat162 values. | |
| __device__ __hip_bfloat162 | __habs2 (const __hip_bfloat162 a) |
| Returns absolute of a bfloat162. | |
| __device__ __hip_bfloat162 | __hadd2 (const __hip_bfloat162 a, const __hip_bfloat162 b) |
| Adds two bfloat162 values. | |
| __device__ __hip_bfloat162 | __hfma2 (const __hip_bfloat162 a, const __hip_bfloat162 b, const __hip_bfloat162 c) |
| Performs FMA of given bfloat162 values. | |
| __device__ __hip_bfloat162 | __hmul2 (const __hip_bfloat162 a, const __hip_bfloat162 b) |
| Multiplies two bfloat162 values. | |
| __device__ __hip_bfloat162 | __hneg2 (const __hip_bfloat162 a) |
| Converts a bfloat162 into negative. | |
| __device__ __hip_bfloat162 | __hsub2 (const __hip_bfloat162 a, const __hip_bfloat162 b) |
| Subtracts two bfloat162 values. | |
To use these functions, include the header file hip_bf16.h in your program.