diff --git a/example/02_gemm_bilinear/gemm_bilinear_wmma_fp16.cpp b/example/02_gemm_bilinear/gemm_bilinear_wmma_fp16.cpp index b50925d711..03c531c1ad 100644 --- a/example/02_gemm_bilinear/gemm_bilinear_wmma_fp16.cpp +++ b/example/02_gemm_bilinear/gemm_bilinear_wmma_fp16.cpp @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved. +// Copyright (c) 2018-2025, Advanced Micro Devices, Inc. All rights reserved. #include #include @@ -21,7 +21,7 @@ struct AlphaBetaAdd { - AlphaBetaAdd(float alpha, float beta) : alpha_(alpha), beta_(beta) {}; + AlphaBetaAdd(float alpha, float beta) : alpha_(alpha), beta_(beta){}; template __host__ __device__ constexpr void operator()(E& e, const C& c, const D& d) const; diff --git a/example/02_gemm_bilinear/gemm_bilinear_wmma_int8.cpp b/example/02_gemm_bilinear/gemm_bilinear_wmma_int8.cpp index a9eef9c6cb..5167097b6d 100644 --- a/example/02_gemm_bilinear/gemm_bilinear_wmma_int8.cpp +++ b/example/02_gemm_bilinear/gemm_bilinear_wmma_int8.cpp @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// Copyright (c) 2018-2022, Advanced Micro Devices, Inc. All rights reserved. +// Copyright (c) 2018-2025, Advanced Micro Devices, Inc. All rights reserved. #include #include @@ -21,7 +21,7 @@ struct AlphaBetaAdd { - AlphaBetaAdd(int alpha, int beta) : alpha_(alpha), beta_(beta) {}; + AlphaBetaAdd(int alpha, int beta) : alpha_(alpha), beta_(beta){}; template __host__ __device__ constexpr void operator()(E& e, const C& c, const D& d) const; diff --git a/example/02_gemm_bilinear/gemm_bilinear_xdl_fp16.cpp b/example/02_gemm_bilinear/gemm_bilinear_xdl_fp16.cpp index aa39afe277..abf7ef3905 100644 --- a/example/02_gemm_bilinear/gemm_bilinear_xdl_fp16.cpp +++ b/example/02_gemm_bilinear/gemm_bilinear_xdl_fp16.cpp @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved. +// Copyright (c) 2018-2025, Advanced Micro Devices, Inc. All rights reserved. #include #include @@ -20,7 +20,7 @@ struct AlphaBetaAdd { - AlphaBetaAdd(float alpha, float beta) : alpha_(alpha), beta_(beta) {}; + AlphaBetaAdd(float alpha, float beta) : alpha_(alpha), beta_(beta){}; template __host__ __device__ constexpr void operator()(E& e, const C& c, const D& d) const; diff --git a/example/60_gemm_multi_ABD/gemm_multi_ABD_xdl_fp16.cpp b/example/60_gemm_multi_ABD/gemm_multi_ABD_xdl_fp16.cpp index 9b218ed583..2582ea8a11 100644 --- a/example/60_gemm_multi_ABD/gemm_multi_ABD_xdl_fp16.cpp +++ b/example/60_gemm_multi_ABD/gemm_multi_ABD_xdl_fp16.cpp @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved. +// Copyright (c) 2018-2025, Advanced Micro Devices, Inc. All rights reserved. #include #include @@ -83,7 +83,7 @@ struct AddScale struct AlphaBetaAdd { - AlphaBetaAdd(float alpha, float beta) : alpha_(alpha), beta_(beta) {}; + AlphaBetaAdd(float alpha, float beta) : alpha_(alpha), beta_(beta){}; template __host__ __device__ constexpr void operator()(E& e, const C& c, const D& d) const; diff --git a/example/61_contraction_multi_ABD/contraction_multi_ABD_xdl_fp16.cpp b/example/61_contraction_multi_ABD/contraction_multi_ABD_xdl_fp16.cpp index b50e876384..57e2feb084 100644 --- a/example/61_contraction_multi_ABD/contraction_multi_ABD_xdl_fp16.cpp +++ b/example/61_contraction_multi_ABD/contraction_multi_ABD_xdl_fp16.cpp @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved. +// Copyright (c) 2023-2025, Advanced Micro Devices, Inc. All rights reserved. #include #include @@ -42,7 +42,7 @@ static constexpr ck::index_t NumDimK = 2; struct AlphaBetaAdd { - AlphaBetaAdd(float alpha, float beta) : alpha_(alpha), beta_(beta) {}; + AlphaBetaAdd(float alpha, float beta) : alpha_(alpha), beta_(beta){}; template __host__ __device__ constexpr void operator()(E& e, const C& c, const D& d) const; diff --git a/include/ck/library/utility/host_tensor_generator.hpp b/include/ck/library/utility/host_tensor_generator.hpp index bc376ffcdf..ab69412c15 100644 --- a/include/ck/library/utility/host_tensor_generator.hpp +++ b/include/ck/library/utility/host_tensor_generator.hpp @@ -483,7 +483,7 @@ struct GeneratorTensor_4 std::normal_distribution distribution; GeneratorTensor_4(float mean, float stddev, unsigned int seed = 1) - : generator(seed), distribution(mean, stddev) {}; + : generator(seed), distribution(mean, stddev){}; template T operator()(Is...) @@ -501,7 +501,7 @@ struct GeneratorTensor_4 std::normal_distribution distribution; GeneratorTensor_4(float mean, float stddev, unsigned int seed = 1) - : generator(seed), distribution(mean, stddev) {}; + : generator(seed), distribution(mean, stddev){}; template ck::f4x2_pk_t operator()(Is...) @@ -520,7 +520,7 @@ struct GeneratorTensor_4 std::normal_distribution distribution; GeneratorTensor_4(float mean, float stddev, unsigned int seed = 1) - : generator(seed), distribution(mean, stddev) {}; + : generator(seed), distribution(mean, stddev){}; template ck::f6x32_pk_t operator()(Is...) @@ -542,7 +542,7 @@ struct GeneratorTensor_4 std::normal_distribution distribution; GeneratorTensor_4(float mean, float stddev, unsigned int seed = 1) - : generator(seed), distribution(mean, stddev) {}; + : generator(seed), distribution(mean, stddev){}; template ck::bf6x32_pk_t operator()(Is...) diff --git a/include/ck/tensor_operation/gpu/element/binary_element_wise_operation.hpp b/include/ck/tensor_operation/gpu/element/binary_element_wise_operation.hpp index f326c4a28d..d86f01e255 100644 --- a/include/ck/tensor_operation/gpu/element/binary_element_wise_operation.hpp +++ b/include/ck/tensor_operation/gpu/element/binary_element_wise_operation.hpp @@ -279,7 +279,7 @@ struct Subtract struct Bilinear { - Bilinear(float alpha = 1.f, float beta = 1.f) : alpha_(alpha), beta_(beta) {}; + Bilinear(float alpha = 1.f, float beta = 1.f) : alpha_(alpha), beta_(beta){}; template __host__ __device__ constexpr void operator()(Y&, const X0&, const X1&) const; @@ -354,7 +354,7 @@ struct Bilinear struct AddClamp { AddClamp(float floor = 0.f, float ceil = NumericLimits::Max()) - : floor_(floor), ceil_(ceil) {}; + : floor_(floor), ceil_(ceil){}; template __host__ __device__ constexpr void operator()(Y& y, const X0& x0, const X1& x1) const; diff --git a/include/ck/tensor_operation/gpu/element/unary_element_wise_operation.hpp b/include/ck/tensor_operation/gpu/element/unary_element_wise_operation.hpp index 80b8306a51..4a87e8a277 100644 --- a/include/ck/tensor_operation/gpu/element/unary_element_wise_operation.hpp +++ b/include/ck/tensor_operation/gpu/element/unary_element_wise_operation.hpp @@ -756,7 +756,7 @@ struct UnarySqrt struct Clamp { Clamp(float floor = 0.f, float ceil = NumericLimits::Max()) - : floor_(floor), ceil_(ceil) {}; + : floor_(floor), ceil_(ceil){}; template __host__ __device__ constexpr void operator()(Y& y, const X& x) const; @@ -1324,7 +1324,7 @@ struct Swish struct SoftRelu { - SoftRelu(float alpha = 1.f) : alpha_(alpha) {}; + SoftRelu(float alpha = 1.f) : alpha_(alpha){}; template __host__ __device__ void operator()(T& y, const T& x) const @@ -1353,7 +1353,7 @@ struct SoftRelu struct Power { Power(float alpha = 0.f, float beta = 1.f, float gamma = 2.f) - : alpha_(alpha), beta_(beta), gamma_(gamma) {}; + : alpha_(alpha), beta_(beta), gamma_(gamma){}; template __host__ __device__ void operator()(T& y, const T& x) const @@ -1386,7 +1386,7 @@ struct Power struct ClippedRelu { - ClippedRelu(float alpha = 0.f, float beta = 1.f) : alpha_(alpha), beta_(beta) {}; + ClippedRelu(float alpha = 0.f, float beta = 1.f) : alpha_(alpha), beta_(beta){}; template __host__ __device__ void operator()(T& y, const T& x) const @@ -1415,7 +1415,7 @@ struct ClippedRelu struct LeakyRelu { - LeakyRelu(float alpha = 0.01f) : alpha_(alpha) {}; + LeakyRelu(float alpha = 0.01f) : alpha_(alpha){}; template __host__ __device__ void operator()(T& y, const T& x) const @@ -1442,7 +1442,7 @@ struct LeakyRelu struct Elu { - Elu(float alpha = 1.f) : alpha_(alpha) {}; + Elu(float alpha = 1.f) : alpha_(alpha){}; template __host__ __device__ void operator()(T& y, const T& x) const @@ -1469,7 +1469,7 @@ struct Elu struct Logistic { - Logistic(float alpha = 1.f) : alpha_(alpha) {}; + Logistic(float alpha = 1.f) : alpha_(alpha){}; template __host__ __device__ void operator()(T& y, const T& x) const diff --git a/include/ck_tile/ops/elementwise/unary_element_wise_operation.hpp b/include/ck_tile/ops/elementwise/unary_element_wise_operation.hpp index 8a97231030..0e385901ed 100644 --- a/include/ck_tile/ops/elementwise/unary_element_wise_operation.hpp +++ b/include/ck_tile/ops/elementwise/unary_element_wise_operation.hpp @@ -1308,7 +1308,7 @@ struct Swish struct SoftRelu { - SoftRelu(float alpha = 1.f) : alpha_(alpha) {}; + SoftRelu(float alpha = 1.f) : alpha_(alpha){}; template CK_TILE_HOST_DEVICE void operator()(T& y, const T& x) const @@ -1327,7 +1327,7 @@ struct SoftRelu struct Power { Power(float alpha = 0.f, float beta = 1.f, float gamma = 2.f) - : alpha_(alpha), beta_(beta), gamma_(gamma) {}; + : alpha_(alpha), beta_(beta), gamma_(gamma){}; template CK_TILE_HOST_DEVICE void operator()(T& y, const T& x) const @@ -1349,7 +1349,7 @@ struct Power struct ClippedRelu { - ClippedRelu(float alpha = 0.f, float beta = 1.f) : alpha_(alpha), beta_(beta) {}; + ClippedRelu(float alpha = 0.f, float beta = 1.f) : alpha_(alpha), beta_(beta){}; template CK_TILE_HOST_DEVICE void operator()(T& y, const T& x) const @@ -1368,7 +1368,7 @@ struct ClippedRelu struct LeakyRelu { - LeakyRelu(float alpha = 0.01f) : alpha_(alpha) {}; + LeakyRelu(float alpha = 0.01f) : alpha_(alpha){}; template CK_TILE_HOST_DEVICE void operator()(T& y, const T& x) const @@ -1385,7 +1385,7 @@ struct LeakyRelu struct Elu { - Elu(float alpha = 1.f) : alpha_(alpha) {}; + Elu(float alpha = 1.f) : alpha_(alpha){}; template CK_TILE_HOST_DEVICE void operator()(T& y, const T& x) const @@ -1402,7 +1402,7 @@ struct Elu struct Logistic { - Logistic(float alpha = 1.f) : alpha_(alpha) {}; + Logistic(float alpha = 1.f) : alpha_(alpha){}; template CK_TILE_HOST_DEVICE void operator()(T& y, const T& x) const