HIP: Heterogenous-computing Interface for Portability
Loading...
Searching...
No Matches
Bfloat16 Math Functions

Functions

__device__ __hip_bfloat16 hceil (const __hip_bfloat16 h)
 Calculate ceil of bfloat16.
 
__device__ __hip_bfloat16 hcos (const __hip_bfloat16 h)
 Calculate cosine of bfloat16.
 
__device__ __hip_bfloat16 hexp (const __hip_bfloat16 h)
 Calculate exponential of bfloat16.
 
__device__ __hip_bfloat16 hexp10 (const __hip_bfloat16 h)
 Calculate exponential 10 of bfloat16.
 
__device__ __hip_bfloat16 hexp2 (const __hip_bfloat16 h)
 Calculate exponential 2 of bfloat16.
 
__device__ __hip_bfloat16 hfloor (const __hip_bfloat16 h)
 Calculate floor of bfloat16.
 
__device__ __hip_bfloat16 hlog (const __hip_bfloat16 h)
 Calculate natural log of bfloat16.
 
__device__ __hip_bfloat16 hlog10 (const __hip_bfloat16 h)
 Calculate log 10 of bfloat16.
 
__device__ __hip_bfloat16 hlog2 (const __hip_bfloat16 h)
 Calculate log 2 of bfloat16.
 
__device__ __hip_bfloat16 hrcp (const __hip_bfloat16 h)
 Calculate reciprocal.
 
__device__ __hip_bfloat16 hrint (const __hip_bfloat16 h)
 Round to nearest int.
 
__device__ __hip_bfloat16 hrsqrt (const __hip_bfloat16 h)
 Reciprocal square root.
 
__device__ __hip_bfloat16 hsin (const __hip_bfloat16 h)
 Calculate sin of bfloat16.
 
__device__ __hip_bfloat16 hsqrt (const __hip_bfloat16 h)
 Calculate sqrt of bfloat16.
 
__device__ __hip_bfloat16 htrunc (const __hip_bfloat16 h)
 Calculate truncate of bfloat16.
 

Detailed Description

To use these functions, include the header file hip_bf16.h in your program.