Skip to content

Commit

Permalink
fix benchmark error
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyu-intel committed Nov 3, 2023
1 parent 178ec77 commit bd36779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnxruntime/test/mlas/bench/bench_q4gemm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ void Q4GEMM_Jblas(benchmark::State& state, int block_size, bool is_asym, MLAS_CO
params1.ldc = N;
params1.B = B1_packed.data();
params1.OutputProcessor = nullptr;

MlasJblasQ4GemmBatch(M, N, K, 1, &params1, tp.get());
std::vector<int8_t> workspace(size_t(M) * K * 4);
MlasJblasQ4GemmBatch(M, N, K, 1, &params1, workspace.data(), tp.get());

for (auto _ : state) {
MlasJblasQ4GemmBatch(M, N, K, 1, &params1, tp.get());
MlasJblasQ4GemmBatch(M, N, K, 1, &params1, workspace.data(), tp.get());
}
}

Expand Down

0 comments on commit bd36779

Please sign in to comment.