Skip to content

Commit

Permalink
Update solution.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Botched135 committed Jan 15, 2025
1 parent 1d5c7b3 commit 10a0dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions labs/memory_bound/mem_alignment_1/solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// In other words, it defines how many elements are in each row.
// hint: you need to allocate dummy columns to achieve proper data alignment.
int n_columns(int N) {
constexpr int base = 64;
return N > 256 ? 512 : (N/base+1)*base;
constexpr int base = 32;
return N > 100 ? (N/base+1)*base : (N/base+1)*base;
}
// ******************************************

Expand Down

0 comments on commit 10a0dca

Please sign in to comment.