HIP: Heterogenous-computing Interface for Portability
|
Functions | |
__device__ __hip_bfloat162 | h2ceil (const __hip_bfloat162 h) |
Calculate ceil of bfloat162. | |
__device__ __hip_bfloat162 | h2cos (const __hip_bfloat162 h) |
Calculate cosine of bfloat162. | |
__device__ __hip_bfloat162 | h2exp (const __hip_bfloat162 h) |
Calculate exponential of bfloat162. | |
__device__ __hip_bfloat162 | h2exp10 (const __hip_bfloat162 h) |
Calculate exponential 10 of bfloat162. | |
__device__ __hip_bfloat162 | h2exp2 (const __hip_bfloat162 h) |
Calculate exponential 2 of bfloat162. | |
__device__ __hip_bfloat162 | h2floor (const __hip_bfloat162 h) |
Calculate floor of bfloat162. | |
__device__ __hip_bfloat162 | h2log (const __hip_bfloat162 h) |
Calculate natural log of bfloat162. | |
__device__ __hip_bfloat162 | h2log10 (const __hip_bfloat162 h) |
Calculate log 10 of bfloat162. | |
__device__ __hip_bfloat162 | h2log2 (const __hip_bfloat162 h) |
Calculate log 2 of bfloat162. | |
__device__ __hip_bfloat162 | h2rcp (const __hip_bfloat162 h) |
Calculate vector reciprocal. | |
__device__ __hip_bfloat162 | h2rint (const __hip_bfloat162 h) |
Calculate vector round to nearest int. | |
__device__ __hip_bfloat162 | h2rsqrt (const __hip_bfloat162 h) |
Calculate vector reciprocal square root. | |
__device__ __hip_bfloat162 | h2sin (const __hip_bfloat162 h) |
Calculate sin of bfloat162. | |
__device__ __hip_bfloat162 | h2sqrt (const __hip_bfloat162 h) |
Calculate sqrt of bfloat162. | |
__device__ __hip_bfloat162 | h2trunc (const __hip_bfloat162 h) |
Calculate truncate of bfloat162. | |
To use these functions, include the header file hip_bf16.h
in your program.