HIP: Heterogenous-computing Interface for Portability
|
Functions | |
__HOST_DEVICE__ bool | __heq (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values. | |
__HOST_DEVICE__ bool | __hequ (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - unordered equal. | |
__HOST_DEVICE__ bool | __hgt (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - greater than. | |
__HOST_DEVICE__ bool | __hgtu (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - unordered greater than. | |
__HOST_DEVICE__ bool | __hge (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - greater than equal. | |
__HOST_DEVICE__ bool | __hgeu (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - unordered greater than equal. | |
__HOST_DEVICE__ bool | __hne (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - not equal. | |
__HOST_DEVICE__ bool | __hneu (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - unordered not equal. | |
__HOST_DEVICE__ __hip_bfloat16 | __hmax (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - return max. | |
__HOST_DEVICE__ __hip_bfloat16 | __hmin (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - return min. | |
__HOST_DEVICE__ bool | __hlt (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - less than operator. | |
__HOST_DEVICE__ bool | __hltu (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - unordered less than. | |
__HOST_DEVICE__ bool | __hle (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - less than equal. | |
__HOST_DEVICE__ bool | __hleu (const __hip_bfloat16 a, const __hip_bfloat16 b) |
Compare two bfloat162 values - unordered less than equal. | |
__HOST_DEVICE__ int | __hisinf (const __hip_bfloat16 a) |
Checks if number is inf. | |
__HOST_DEVICE__ bool | __hisnan (const __hip_bfloat16 a) |
Checks if number is nan. | |
__HOST_DEVICE__ bool | operator== (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
Operator to perform an equal compare on two __hip_bfloat16 numbers. | |
__HOST_DEVICE__ bool | operator!= (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
Operator to perform a not equal on two __hip_bfloat16 numbers. | |
__HOST_DEVICE__ bool | operator< (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
Operator to perform a less than on two __hip_bfloat16 numbers. | |
__HOST_DEVICE__ bool | operator<= (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
Operator to perform a less than equal on two __hip_bfloat16 numbers. | |
__HOST_DEVICE__ bool | operator> (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
Operator to perform a greater than on two __hip_bfloat16 numbers. | |
__HOST_DEVICE__ bool | operator>= (const __hip_bfloat16 &l, const __hip_bfloat16 &r) |
Operator to perform a greater than equal on two __hip_bfloat16 numbers. | |
__HOST_DEVICE__ bool | operator>= (const __hip_bfloat162 &l, const __hip_bfloat162 &r) |
Operator to perform a greater than equal on two __hip_bfloat16 numbers. | |
To use these functions, include the header file hip_bf16.h
in your program.