Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a out-of-bounds accessing bug. #7637

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bench/packw-benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ static void qs8_qc4w_packw(benchmark::State& state,
const size_t dim_k = state.range(3); // dim_k is kc parameter

const size_t rounded_n = benchmark::utils::RoundUp(dim_n, nr);
const size_t rounded_k = benchmark::utils::RoundUp(dim_k, kr * sr);
const size_t rounded_k = round_up_po2(dim_k, 2 * kr * sr);
const size_t rounded_size = rounded_n * rounded_k / 2 + rounded_n * sizeof(uint32_t);

std::random_device random_device;
Expand Down