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

Functions

__BF16_HOST_DEVICE_STATIC__ bool __heq (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values.
 
__BF16_HOST_DEVICE_STATIC__ bool __hequ (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - unordered equal.
 
__BF16_HOST_DEVICE_STATIC__ bool __hgt (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - greater than.
 
__BF16_HOST_DEVICE_STATIC__ bool __hgtu (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - unordered greater than.
 
__BF16_HOST_DEVICE_STATIC__ bool __hge (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - greater than equal.
 
__BF16_HOST_DEVICE_STATIC__ bool __hgeu (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - unordered greater than equal.
 
__BF16_HOST_DEVICE_STATIC__ bool __hne (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - not equal.
 
__BF16_HOST_DEVICE_STATIC__ bool __hneu (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - unordered not equal.
 
__BF16_HOST_DEVICE_STATIC__ __hip_bfloat16 __hmax (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - return max.
 
__BF16_HOST_DEVICE_STATIC__ __hip_bfloat16 __hmin (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - return min.
 
__BF16_HOST_DEVICE_STATIC__ bool __hlt (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - less than operator.
 
__BF16_HOST_DEVICE_STATIC__ bool __hltu (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - unordered less than.
 
__BF16_HOST_DEVICE_STATIC__ bool __hle (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - less than equal.
 
__BF16_HOST_DEVICE_STATIC__ bool __hleu (const __hip_bfloat16 a, const __hip_bfloat16 b)
 Compare two bfloat162 values - unordered less than equal.
 
__BF16_HOST_DEVICE_STATIC__ int __hisinf (const __hip_bfloat16 a)
 Checks if number is inf.
 
__BF16_HOST_DEVICE_STATIC__ bool __hisnan (const __hip_bfloat16 a)
 Checks if number is nan.
 
__BF16_HOST_DEVICE_STATIC__ bool operator== (const __hip_bfloat16 &l, const __hip_bfloat16 &r)
 Operator to perform an equal compare on two __hip_bfloat16 numbers.
 
__BF16_HOST_DEVICE_STATIC__ bool operator!= (const __hip_bfloat16 &l, const __hip_bfloat16 &r)
 Operator to perform a not equal on two __hip_bfloat16 numbers.
 
__BF16_HOST_DEVICE_STATIC__ bool operator< (const __hip_bfloat16 &l, const __hip_bfloat16 &r)
 Operator to perform a less than on two __hip_bfloat16 numbers.
 
__BF16_HOST_DEVICE_STATIC__ bool operator<= (const __hip_bfloat16 &l, const __hip_bfloat16 &r)
 Operator to perform a less than equal on two __hip_bfloat16 numbers.
 
__BF16_HOST_DEVICE_STATIC__ bool operator> (const __hip_bfloat16 &l, const __hip_bfloat16 &r)
 Operator to perform a greater than on two __hip_bfloat16 numbers.
 
__BF16_HOST_DEVICE_STATIC__ bool operator>= (const __hip_bfloat16 &l, const __hip_bfloat16 &r)
 Operator to perform a greater than equal on two __hip_bfloat16 numbers.
 
__BF16_HOST_DEVICE_STATIC__ bool operator>= (const __hip_bfloat162 &l, const __hip_bfloat162 &r)
 Operator to perform a greater than equal on two __hip_bfloat16 numbers.
 

Detailed Description

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