Skip to content

Commit

Permalink
fix a offset computation
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos committed Dec 10, 2024
1 parent 38f3689 commit 4044d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metal/src/kernels/matmul/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl GemmDispatchParams {
n,
k,
transpose_a,
a_offset: a_offset + a_batch_idx * n * k * dt.size_of(),
a_offset: a_offset + a_batch_idx * m * k * dt.size_of(),
transpose_b,
b_offset,
c_offset: c_offset + a_batch_idx * m * n * dt.size_of(),
Expand Down

0 comments on commit 4044d80

Please sign in to comment.