From 32879114dcd8ab84d74b8a7c7f7e8dd2666b7da5 Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Mon, 7 Apr 2025 07:08:39 -0700 Subject: [PATCH] fix codegen issues (#2052) [ROCm/composable_kernel commit: 179322842274a635f6bd6141c7251a2f65b5fa34] --- include/ck/utility/amd_ck_fp8.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/ck/utility/amd_ck_fp8.hpp b/include/ck/utility/amd_ck_fp8.hpp index b0089bb2d1..d079639c6a 100644 --- a/include/ck/utility/amd_ck_fp8.hpp +++ b/include/ck/utility/amd_ck_fp8.hpp @@ -557,7 +557,7 @@ template = false> static __device__ fp8_storage_t cast_to_f8_from_f16(_Float16 v, unsigned int rng = 0) { - std::ignore = rng; + ignore = rng; union { @@ -596,7 +596,7 @@ static __device__ fp8x2_storage_t cast_to_f8_from_f16(half2_t v, unsigned int rn cast_to_f8_from_f16(v[0], rng), cast_to_f8_from_f16(v[1], rng)}; #else - std::ignore = rng; + ignore = rng; union { @@ -634,7 +634,7 @@ template = false> static __device__ fp8_storage_t cast_to_f8_from_f16(_Float16 v, unsigned int rng = 0) { - std::ignore = rng; + ignore = rng; union { @@ -673,7 +673,7 @@ static __device__ fp8x2_storage_t cast_to_f8_from_f16(half2_t v, unsigned int rn cast_to_f8_from_f16(v[0], rng), cast_to_f8_from_f16(v[1], rng)}; #else - std::ignore = rng; + ignore = rng; union { @@ -805,7 +805,7 @@ template = false> static __device__ fp8_storage_t cast_to_f8_from_bf16(ushort v, unsigned int rng = 0) { - std::ignore = rng; + ignore = rng; union { @@ -847,7 +847,7 @@ static __device__ fp8x2_storage_t cast_to_f8_from_bf16(ushortx2_t v, unsigned in cast_to_f8_from_bf16(v[0], rng), cast_to_f8_from_bf16(v[1], rng)}; #else - std::ignore = rng; + ignore = rng; union { @@ -891,7 +891,7 @@ template = false> static __device__ fp8_storage_t cast_to_f8_from_bf16(ushort v, unsigned int rng = 0) { - std::ignore = rng; + ignore = rng; union { @@ -928,7 +928,7 @@ template = false> static __device__ fp8x2_storage_t cast_to_f8_from_bf16(ushortx2_t v, unsigned int rng = 0) { - std::ignore = rng; + ignore = rng; union { @@ -1544,7 +1544,7 @@ __host__ static inline fp8_storage_t cvt_half_t_to_fp8(const _Float16 x) sat == ck_saturation_t::CK_SATFINITE, stochastic_rounding>(x, rng); #else - std::ignore = rng; + ignore = rng; return cvt_float_to_fp8( static_cast(x)); #endif // defined(__gfx950__) @@ -1586,7 +1586,7 @@ __host__ static inline fp8x2_storage_t cvt_half_t_to_fp8(const half2_t x) sat == ck_saturation_t::CK_SATFINITE, stochastic_rounding>(x, rng); #else - std::ignore = rng; + ignore = rng; return cvt_float_to_fp8( float2_t{static_cast(x[0]), static_cast(x[1])}); #endif // defined(__gfx950__) @@ -1629,7 +1629,7 @@ __host__ static inline fp8_storage_t cvt_bhalf_t_to_fp8(const ushort x) sat == ck_saturation_t::CK_SATFINITE, stochastic_rounding>(x, rng); #else - std::ignore = rng; + ignore = rng; return cvt_float_to_fp8( bit_cast(uint32_t{x} << 16)); // convert value to float #endif // defined(__gfx950__) @@ -1678,7 +1678,7 @@ __host__ static inline fp8x2_storage_t cvt_bhalf_t_to_fp8(const ushortx2_t x) sat == ck_saturation_t::CK_SATFINITE, stochastic_rounding>(x, rng); #else - std::ignore = rng; + ignore = rng; return cvt_float_to_fp8( float2_t{bit_cast(uint32_t{x[0]} << 16), bit_cast(uint32_t{x[1]} << 16)}); // convert values to float