Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
fix coverity (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
huaiyuzh authored and taozha2 committed Dec 21, 2023
1 parent 4ca09dc commit 15f05e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions include/group/gemm/impl/unaligned_xmx_xe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,11 @@ class gemm_t<compute_policy_unaligned_xmx<compute_attr_, perf_tuning_knob_,
partial_matB_t partial_matB;
// >>>>>>>>>>>>>>>>>> pre_processing init
pre_processing.init(g, args.pre_processing_args);
uint64_t base_A = slm_base_a + sg_idy * tile_size_a;
uint64_t base_B = slm_base_b + sg_idx * tile_size_b;
uint32_t base_A = slm_base_a + sg_idy * tile_size_a;
uint32_t base_B = slm_base_b + sg_idx * tile_size_b;

uint64_t store_idx = 0;
uint64_t load_idx = 0;
uint32_t store_idx = 0;
uint32_t load_idx = 0;

matA_payload_t matA_payload(args.matA_base_desc);
matA_payload_local_st_t matA_local_st_payload(base_A, tile_size_x_a,
Expand Down
4 changes: 2 additions & 2 deletions include/subgroup/cooperative_load_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class cooperative_load_helper_t<matAcc_t_, mem_layout::row_major,
static constexpr gpu_arch arch_tag = arch_tag_;
using matAcc_t = matAcc_t_;
using dtype = typename matAcc_t::dtype;
using tile_desc_t = matAcc_t::tile_desc;
using tile_desc_t = typename matAcc_t::tile_desc;
static constexpr mem_layout layout = mem_layout::row_major;

private:
Expand Down Expand Up @@ -101,7 +101,7 @@ class cooperative_load_helper_t<matAcc_t_, mem_layout::col_major,
static constexpr gpu_arch arch_tag = arch_tag_;
using matAcc_t = matAcc_t_;
using dtype = typename matAcc_t::dtype;
using tile_desc_t = matAcc_t::tile_desc;
using tile_desc_t = typename matAcc_t::tile_desc;
static constexpr mem_layout layout = mem_layout::col_major;

private:
Expand Down

0 comments on commit 15f05e0

Please sign in to comment.