|
16 | 16 |
|
17 | 17 | //================================================================================
|
18 | 18 | // this file has been auto-generated, do not modify its contents!
|
19 |
| -// date: 2025-01-27 16:26:28.827757 |
20 |
| -// git hash: 09dc82096e4c013a079f0e315da1ccce17453c93 |
| 19 | +// date: 2025-07-17 14:58:12.821069 |
| 20 | +// git hash: cb04a8f36c97ea0e0ff0648316f82b6125214c83 |
21 | 21 | //================================================================================
|
22 | 22 |
|
23 | 23 | #ifndef KERNEL_FLOAT_MACROS_H
|
@@ -4403,15 +4403,15 @@ KERNEL_FLOAT_BF16_UNARY_FUN(negate, ::__hneg, ::__hneg2)
|
4403 | 4403 | // For CUDA, we can just use the regular bfloat16 functions (see above).
|
4404 | 4404 | #elif KERNEL_FLOAT_IS_HIP
|
4405 | 4405 | KERNEL_FLOAT_INLINE __hip_bfloat16 hip_habs(const __hip_bfloat16 a) {
|
4406 |
| - __hip_bfloat16 res = a; |
4407 |
| - res.data &= 0x7FFF; |
4408 |
| - return res; |
| 4406 | + unsigned short int res = __bfloat16_as_ushort(a); |
| 4407 | + res &= 0x7FFF; |
| 4408 | + return __ushort_as_bfloat16(); |
4409 | 4409 | }
|
4410 | 4410 |
|
4411 | 4411 | KERNEL_FLOAT_INLINE __hip_bfloat16 hip_hneg(const __hip_bfloat16 a) {
|
4412 |
| - __hip_bfloat16 res = a; |
4413 |
| - res.data ^= 0x8000; |
4414 |
| - return res; |
| 4412 | + unsigned short int res = __bfloat16_as_ushort(a); |
| 4413 | + res ^= 0x8000; |
| 4414 | + return __ushort_as_bfloat16(res); |
4415 | 4415 | }
|
4416 | 4416 |
|
4417 | 4417 | KERNEL_FLOAT_INLINE __hip_bfloat162 hip_habs2(const __hip_bfloat162 a) {
|
@@ -4569,8 +4569,8 @@ KERNEL_FLOAT_BF16_CAST(unsigned long long, __ull2bfloat16_rn(input), __bfloat162
|
4569 | 4569 | #elif KERNEL_FLOAT_IS_HIP
|
4570 | 4570 | KERNEL_FLOAT_BF16_CAST(
|
4571 | 4571 | bool,
|
4572 |
| - __hip_bfloat16 {input ? (unsigned short)0 : (unsigned short)0x3C00}, |
4573 |
| - (__hip_bfloat16(input).data & 0x7FFF) != 0); |
| 4572 | + __ushort_as_bfloat16(input ? (unsigned short)0 : (unsigned short)0x3C00), |
| 4573 | + (__bfloat16_as_ushort(input) & 0x7FFF) != 0); |
4574 | 4574 | #endif
|
4575 | 4575 |
|
4576 | 4576 | KERNEL_FLOAT_VECTOR_ALIAS(bfloat16x, bfloat16_t)
|
@@ -5842,7 +5842,7 @@ struct tiling_iterator {
|
5842 | 5842 | KERNEL_FLOAT_INLINE
|
5843 | 5843 | tiling_iterator operator++(int) {
|
5844 | 5844 | tiling_iterator old = *this;
|
5845 |
| - this ++; |
| 5845 | + (*this)++; |
5846 | 5846 | return old;
|
5847 | 5847 | }
|
5848 | 5848 |
|
|
0 commit comments