diff --git a/examples/benchmark/benchmark-matmult.cpp b/examples/benchmark/benchmark-matmult.cpp index 475830950..434e1d6bd 100644 --- a/examples/benchmark/benchmark-matmult.cpp +++ b/examples/benchmark/benchmark-matmult.cpp @@ -131,7 +131,7 @@ int main(int argc, char ** argv) { size_t ctx_size = 0; ctx_size += ggml_row_size(GGML_TYPE_F32, sizex*sizey); ctx_size += ggml_row_size(GGML_TYPE_F32, sizex*sizey); - ctx_size += ggml_row_size(GGML_TYPE_F32, sizex*sizey); + ctx_size += ggml_row_size(GGML_TYPE_F32, sizex*sizez); ctx_size += ggml_row_size(qtype, sizex*sizey); ctx_size += ggml_row_size(qtype, sizex*sizey); ctx_size += ggml_row_size(GGML_TYPE_F32, sizex*sizey); // BLAS