Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix bugs in matcopy_batch operators
Browse files Browse the repository at this point in the history
Current non-transpose implementation has a bug in the type for alpha
scalar. This commit fix it.
  • Loading branch information
s-Nick committed Oct 31, 2023
1 parent 8d29746 commit a601e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/operations/extension/matcopy_batch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Matcopy_batch<is_add, TileSize, TilePerWG, lhs_t, rhs_t,
orig_rhs = orig_rhs + wg_row + wg_col * rhs_1_ld_ + item_id;

value_t reg_rhs[TileSize];
const index_t alpha = alpha_;
const value_t alpha = alpha_;

const bool is_internal_block =
(m - wg_row >= TileSize) && (n - wg_col >= TileSize);
Expand Down Expand Up @@ -151,8 +151,8 @@ Matcopy_batch<is_add, TileSize, TilePerWG, lhs_t, rhs_t,

value_t reg_rhs[TileSize];
value_t reg_rhs_2[TileSize];
const index_t alpha = alpha_;
const index_t beta = beta_;
const value_t alpha = alpha_;
const value_t beta = beta_;

const bool is_internal_block =
(m - wg_row >= TileSize) && (n - wg_col >= TileSize);
Expand Down

0 comments on commit a601e30

Please sign in to comment.