Skip to content

Commit 54fba51

Browse files
author
Chao Liu
committed
tidy
1 parent e62bae7 commit 54fba51

8 files changed

+0
-27
lines changed

composable_kernel/include/problem_transform/transform_forward_convolution_into_gemm_v4r4_nchw_kcyx_nkhw.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ transform_forward_convolution_into_gemm_v4r4_nchw_kcyx_nkhw_no_pad(
126126
const auto C = in_n_c_hi_wi_global_desc.GetLength(I1);
127127
const auto K = out_n_k_ho_wo_global_desc.GetLength(I1);
128128

129-
const auto Hi = in_n_c_hi_wi_global_desc.GetLength(I2);
130-
const auto Wi = in_n_c_hi_wi_global_desc.GetLength(I3);
131-
132129
const auto Ho = out_n_k_ho_wo_global_desc.GetLength(I2);
133130
const auto Wo = out_n_k_ho_wo_global_desc.GetLength(I3);
134131

@@ -209,9 +206,6 @@ __host__ __device__ constexpr auto transform_forward_convolution_into_gemm_v4r4_
209206
const auto C = in_n_c_hi_wi_global_desc.GetLength(I1);
210207
const auto K = out_n_k_ho_wo_global_desc.GetLength(I1);
211208

212-
const auto Hi = in_n_c_hi_wi_global_desc.GetLength(I2);
213-
const auto Wi = in_n_c_hi_wi_global_desc.GetLength(I3);
214-
215209
const auto Ho = out_n_k_ho_wo_global_desc.GetLength(I2);
216210
const auto Wo = out_n_k_ho_wo_global_desc.GetLength(I3);
217211

composable_kernel/include/problem_transform/transform_forward_convolution_into_gemm_v4r4_nhwc_kyxc_nhwk.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ __host__ __device__ constexpr auto transform_forward_convolution_into_gemm_v4r4_
125125
const auto C = in_n_hi_wi_c_grid_desc.GetLength(I3);
126126
const auto K = out_n_ho_wo_k_grid_desc.GetLength(I3);
127127

128-
const auto Hi = in_n_hi_wi_c_grid_desc.GetLength(I1);
129-
const auto Wi = in_n_hi_wi_c_grid_desc.GetLength(I2);
130-
131128
const auto Ho = out_n_ho_wo_k_grid_desc.GetLength(I1);
132129
const auto Wo = out_n_ho_wo_k_grid_desc.GetLength(I2);
133130

composable_kernel/include/tensor_operation/blockwise_gemm_dlops_v3.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ struct BlockwiseGemmDlops_km_kn_m0m1n0n1_v3
6969
"wrong! K dimension not consistent\n");
7070

7171
constexpr index_t K = BlockMatrixA{}.GetLength(I1); // A is transposed
72-
constexpr index_t N = BlockMatrixB{}.GetLength(I1);
7372
constexpr index_t H = BlockMatrixB{}.GetLength(I2);
7473
constexpr index_t W = BlockMatrixB{}.GetLength(I3);
7574

composable_kernel/include/tensor_operation/blockwise_gemm_xdlops.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ struct BlockwiseGemmXdlops_km_kn_m0m1m2n_v1
5252
const index_t waveId = thread_id / WaveSize;
5353
const index_t laneId = thread_id % WaveSize;
5454
const index_t waveId_m = waveId / NWaves;
55-
const index_t waveId_n = waveId % NWaves;
5655

5756
if constexpr(xdlops_gemm.IsKReduction)
5857
{
@@ -73,7 +72,6 @@ struct BlockwiseGemmXdlops_km_kn_m0m1m2n_v1
7372
const index_t thread_id = get_thread_local_1d_id();
7473
const index_t waveId = thread_id / WaveSize;
7574
const index_t laneId = thread_id % WaveSize;
76-
const index_t waveId_m = waveId / NWaves;
7775
const index_t waveId_n = waveId % NWaves;
7876

7977
if constexpr(xdlops_gemm.IsKReduction)
@@ -293,7 +291,6 @@ struct BlockwiseGemmXdlops_km_kn_m0m1m2n_v1_2x2pipeline
293291
const index_t thread_id = get_thread_local_1d_id();
294292
const index_t waveId = thread_id / WaveSize;
295293
const index_t laneId = thread_id % WaveSize;
296-
const index_t waveId_m = waveId / NWaves;
297294
const index_t waveId_n = waveId % NWaves;
298295

299296
if constexpr(xdlops_gemm.IsKReduction)

composable_kernel/include/utility/sequence.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,6 @@ __host__ __device__ constexpr auto operator+(Number<Y>, Sequence<Xs...>)
685685
template <index_t Y, index_t... Xs>
686686
__host__ __device__ constexpr auto operator-(Number<Y>, Sequence<Xs...>)
687687
{
688-
constexpr auto seq_x = Sequence<Xs...>{};
689-
690688
return Sequence<(Y - Xs)...>{};
691689
}
692690

composable_kernel/src/kernel_wrapper/dynamic_convolution_forward_implicit_gemm_v4r4_xdlops_nhwc_kyxc_nhwk.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ extern "C" __global__ void
225225
constexpr auto I0 = Number<0>{};
226226
constexpr auto I1 = Number<1>{};
227227
constexpr auto I2 = Number<2>{};
228-
constexpr auto I3 = Number<3>{};
229228

230229
constexpr auto in_n_hi_wi_c_desc =
231230
make_dynamic_naive_tensor_descriptor_packed_v2(make_tuple(256, 28, 28, 256));

host/driver_offline/include/device_dynamic_convolution_forward_implicit_gemm_v4r4r2_xdlops_nhwc_kyxc_nhwk.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ void device_dynamic_convolution_forward_implicit_gemm_v4r4r2_xdlops_nhwc_kyxc_nh
3535
constexpr auto I1 = Number<1>{};
3636
constexpr auto I2 = Number<2>{};
3737
constexpr auto I3 = Number<3>{};
38-
constexpr auto I4 = Number<4>{};
39-
constexpr auto I5 = Number<5>{};
40-
constexpr auto I6 = Number<6>{};
41-
constexpr auto I7 = Number<7>{};
42-
constexpr auto I8 = Number<8>{};
4338

4439
DeviceMem in_n_hi_wi_c_device_buf(sizeof(TInWei) * in_n_hi_wi_c.mDesc.GetElementSpace());
4540
DeviceMem wei_k_y_x_c_device_buf(sizeof(TInWei) * wei_k_y_x_c.mDesc.GetElementSpace());
@@ -218,9 +213,6 @@ void device_dynamic_convolution_forward_implicit_gemm_v4r4r2_xdlops_nhwc_kyxc_nh
218213
const auto K = out_n_ho_wo_k_lengths[I3];
219214
const auto C = wei_k_y_x_c_lengths[I3];
220215

221-
const auto Hi = in_n_hi_wi_c_lengths[I1];
222-
const auto Wi = in_n_hi_wi_c_lengths[I2];
223-
224216
const auto Ho = out_n_ho_wo_k_lengths[I1];
225217
const auto Wo = out_n_ho_wo_k_lengths[I2];
226218

host/driver_offline/include/driver_dynamic_gemm_xdlops_v2r3.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ __host__ float driver_dynamic_gemm_xdlops_v2r3(const FloatAB* p_a_grid,
6666
constexpr auto I0 = Number<0>{};
6767
constexpr auto I1 = Number<1>{};
6868
constexpr auto I2 = Number<2>{};
69-
constexpr auto I3 = Number<3>{};
70-
constexpr auto I4 = Number<4>{};
71-
constexpr auto I5 = Number<5>{};
7269

7370
using GridwiseGemm =
7471
GridwiseDynamicGemm_k0mk1_k0nk1_mn_xdlops_v2r3<BlockSize,

0 commit comments

Comments
 (0)