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 8966347 commit 985fd62
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 985fd62

Please sign in to comment.