From 744262dd888a4d795425a0f9bc6baa4e7edfdca1 Mon Sep 17 00:00:00 2001 From: Anca Hamuraru Date: Thu, 8 May 2025 13:48:18 +0000 Subject: [PATCH] Pre-commit hooks fixes --- .../tensor_operation_instance/gpu/gemm_universal.hpp | 10 ++++------ .../device_gemm_wmma_universal_f16_f8_f16_km_kn_mn.hpp | 2 +- .../device_gemm_wmma_universal_f16_f8_f16_km_nk_mn.hpp | 2 +- .../device_gemm_wmma_universal_f16_f8_f16_mk_kn_mn.hpp | 2 +- .../device_gemm_wmma_universal_f16_f8_f16_mk_nk_mn.hpp | 2 +- .../device_gemm_wmma_universal_f8_f16_f16_km_kn_mn.hpp | 2 +- .../device_gemm_wmma_universal_f8_f16_f16_km_nk_mn.hpp | 2 +- .../device_gemm_wmma_universal_f8_f16_f16_mk_kn_mn.hpp | 2 +- .../device_gemm_wmma_universal_f8_f16_f16_mk_nk_mn.hpp | 2 +- test/gemm_universal/test_gemm_universal_wmma_bf16.cpp | 2 +- 10 files changed, 13 insertions(+), 15 deletions(-) diff --git a/library/include/ck/library/tensor_operation_instance/gpu/gemm_universal.hpp b/library/include/ck/library/tensor_operation_instance/gpu/gemm_universal.hpp index 91b9056249..75ab945f99 100644 --- a/library/include/ck/library/tensor_operation_instance/gpu/gemm_universal.hpp +++ b/library/include/ck/library/tensor_operation_instance/gpu/gemm_universal.hpp @@ -133,7 +133,7 @@ struct DeviceOperationInstanceFactory< is_same_v) { if constexpr(is_same_v && is_same_v && - is_same_v) + is_same_v) { add_device_gemm_wmma_universal_bf16_i4_bf16_mk_nk_mn_comp_default_instances( op_ptrs); @@ -201,16 +201,14 @@ struct DeviceOperationInstanceFactory< is_same_v) { if constexpr(is_same_v && is_same_v && - is_same_v) + is_same_v) { - add_device_gemm_wmma_universal_f16_i4_f16_mk_nk_mn_comp_default_instances( - op_ptrs); + add_device_gemm_wmma_universal_f16_i4_f16_mk_nk_mn_comp_default_instances(op_ptrs); } else if constexpr(is_same_v && is_same_v && is_same_v) { - add_device_gemm_wmma_universal_f16_i4_f16_km_nk_mn_comp_default_instances( - op_ptrs); + add_device_gemm_wmma_universal_f16_i4_f16_km_nk_mn_comp_default_instances(op_ptrs); } } #endif diff --git a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_km_kn_mn.hpp b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_km_kn_mn.hpp index c98cd429dd..d25f00db12 100644 --- a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_km_kn_mn.hpp +++ b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_km_kn_mn.hpp @@ -13,7 +13,7 @@ namespace tensor_operation { namespace device { namespace instance { -using F8 = f8_t; +using F8 = f8_t; using F16 = half_t; using F32 = float; diff --git a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_km_nk_mn.hpp b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_km_nk_mn.hpp index dbc0434d9a..ad56d50e43 100644 --- a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_km_nk_mn.hpp +++ b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_km_nk_mn.hpp @@ -13,7 +13,7 @@ namespace tensor_operation { namespace device { namespace instance { -using F8 = f8_t; +using F8 = f8_t; using F16 = half_t; using F32 = float; diff --git a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_mk_kn_mn.hpp b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_mk_kn_mn.hpp index b976d5dc0d..2feadad794 100644 --- a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_mk_kn_mn.hpp +++ b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_mk_kn_mn.hpp @@ -13,7 +13,7 @@ namespace tensor_operation { namespace device { namespace instance { -using F8 = f8_t; +using F8 = f8_t; using F16 = half_t; using F32 = float; diff --git a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_mk_nk_mn.hpp b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_mk_nk_mn.hpp index c93204cec9..4fa4560741 100644 --- a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_mk_nk_mn.hpp +++ b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f16_f8_f16/device_gemm_wmma_universal_f16_f8_f16_mk_nk_mn.hpp @@ -13,7 +13,7 @@ namespace tensor_operation { namespace device { namespace instance { -using F8 = f8_t; +using F8 = f8_t; using F16 = half_t; using F32 = float; diff --git a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_km_kn_mn.hpp b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_km_kn_mn.hpp index 0040ecda52..ea8db0c0d5 100644 --- a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_km_kn_mn.hpp +++ b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_km_kn_mn.hpp @@ -13,7 +13,7 @@ namespace tensor_operation { namespace device { namespace instance { -using F8 = f8_t; +using F8 = f8_t; using F16 = half_t; using F32 = float; diff --git a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_km_nk_mn.hpp b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_km_nk_mn.hpp index 06f05c721b..1d5972dabf 100644 --- a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_km_nk_mn.hpp +++ b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_km_nk_mn.hpp @@ -13,7 +13,7 @@ namespace tensor_operation { namespace device { namespace instance { -using F8 = f8_t; +using F8 = f8_t; using F16 = half_t; using F32 = float; diff --git a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_mk_kn_mn.hpp b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_mk_kn_mn.hpp index 20b196834a..c58ee3d4d4 100644 --- a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_mk_kn_mn.hpp +++ b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_mk_kn_mn.hpp @@ -13,7 +13,7 @@ namespace tensor_operation { namespace device { namespace instance { -using F8 = f8_t; +using F8 = f8_t; using F16 = half_t; using F32 = float; diff --git a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_mk_nk_mn.hpp b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_mk_nk_mn.hpp index da91beb161..a0a16931a9 100644 --- a/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_mk_nk_mn.hpp +++ b/library/src/tensor_operation_instance/gpu/gemm_universal/device_gemm_wmma_universal_f8_f16_f16/device_gemm_wmma_universal_f8_f16_f16_mk_nk_mn.hpp @@ -13,7 +13,7 @@ namespace tensor_operation { namespace device { namespace instance { -using F8 = f8_t; +using F8 = f8_t; using F16 = half_t; using F32 = float; diff --git a/test/gemm_universal/test_gemm_universal_wmma_bf16.cpp b/test/gemm_universal/test_gemm_universal_wmma_bf16.cpp index 63eede6e40..83d7eab1ad 100644 --- a/test/gemm_universal/test_gemm_universal_wmma_bf16.cpp +++ b/test/gemm_universal/test_gemm_universal_wmma_bf16.cpp @@ -7,7 +7,7 @@ #include "ck/tensor_operation/gpu/device/tensor_layout.hpp" #include "test_gemm_universal_util.hpp" -using I4 = pk_i4_t; +using I4 = pk_i4_t; using BF16 = ck::bhalf_t; using F32 = float;