HIP: Heterogenous-computing Interface for Portability
|
Functions | |
__device__ __hip_bfloat16 | __hadd (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Adds two bfloat16 values. | |
__device__ __hip_bfloat16 | __hsub (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Subtracts two bfloat16 values. | |
__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. | |
__device__ __hip_bfloat16 | __hmul (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Multiplies two bfloat16 values. | |
__device__ __hip_bfloat16 | __hneg (const __hip_bfloat16 a) |
Negate a bfloat16 value. | |
__device__ __hip_bfloat16 | __habs (const __hip_bfloat16 a) |
Returns absolute of a bfloat16. | |
To use these functions, include the header file hip_bf16.h
in your program.