Skip to content

Commit

Permalink
lab memory bound loop interchange 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gco-bmx committed Dec 27, 2024
1 parent 9120865 commit 9e0fc72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions labs/memory_bound/loop_interchange_1/solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ void multiply(Matrix &result, const Matrix &a, const Matrix &b) {
zero(result);

for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
for (int k = 0; k < N; k++) {
for (int k = 0; k < N; k++) {
for (int j = 0; j < N; j++) {
result[i][j] += a[i][k] * b[k][j];
}
}
Expand Down

0 comments on commit 9e0fc72

Please sign in to comment.