Skip to content

Commit

Permalink
fix some spaces added by IDE in math op
Browse files Browse the repository at this point in the history
ggml-ci
  • Loading branch information
phymbert authored and ggerganov committed Feb 18, 2024
1 parent 6068734 commit 47c662b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions examples/benchmark/benchmark-matmult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ int main(int argc, char ** argv) {
const ggml_type qtype = GGML_TYPE_Q4_1;

size_t kv_size = 0;
kv_size += ggml_row_size(GGML_TYPE_F32, sizex * sizey);
kv_size += ggml_row_size(GGML_TYPE_F32, sizex * sizey);
kv_size += ggml_row_size(GGML_TYPE_F32, sizex * sizez);
kv_size += ggml_row_size(qtype, sizex * sizey);
kv_size += ggml_row_size(qtype, sizex * sizey);
kv_size += ggml_row_size(GGML_TYPE_F32, sizex * sizey); // BLAS
kv_size += ggml_row_size(GGML_TYPE_F32, sizex * sizey); // BLAS
kv_size += 1024 * 1024 * 16;

printf("Allocating Memory of size %zi bytes, %zi MB\n", kv_size, (kv_size / 1024 / 1024));
kv_size += ggml_row_size(GGML_TYPE_F32, sizex*sizey);
kv_size += ggml_row_size(GGML_TYPE_F32, sizex*sizey);
kv_size += ggml_row_size(GGML_TYPE_F32, sizex*sizez);
kv_size += ggml_row_size(qtype, sizex*sizey);
kv_size += ggml_row_size(qtype, sizex*sizey);
kv_size += ggml_row_size(GGML_TYPE_F32, sizex*sizey); // BLAS
kv_size += ggml_row_size(GGML_TYPE_F32, sizex*sizey); // BLAS
kv_size += 1024*1024*16;

printf("Allocating Memory of size %zi bytes, %zi MB\n", kv_size, (kv_size/1024/1024));

struct ggml_init_params params = {
/*.mem_size =*/ kv_size,
Expand Down

0 comments on commit 47c662b

Please sign in to comment.