diff options
author | Kawrakow <iwankawrakow@gmail.com> | 2024-10-04 14:43:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 14:43:26 +0300 |
commit | bc79091b0e8602a8d292c22fba0d4072456d52d0 (patch) | |
tree | cddb166cf147f90050877fab1c4e0e9a3aaa5dc9 /ggml/src | |
parent | 0bf4d99774aa3b6d00ef564acbc4dc211e45db33 (diff) |
Move to c++17 projectwide (#80)
* Slightly better
* Make the entire project c++17
---------
Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
Diffstat (limited to 'ggml/src')
-rw-r--r-- | ggml/src/ggml.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 8f3d8f3f..86cc669e 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -13459,6 +13459,8 @@ UseGgmlGemm1:; } } + ggml_barrier(params->shared); + #if IK_PRINT_TIMING int64_t t2 = ggml_time_us(); if (ith == 0) printf("quantize(%s): %d us\n", dst->name, (int)(t2 - t1)); @@ -13468,11 +13470,10 @@ UseGgmlGemm1:; wdata -= GGML_MAX_NAME; memcpy(wdata, src1->name, GGML_MAX_NAME); // Every thread starts at ith, so the first unprocessed chunk is nth. This save a bit of coordination right at the start. - atomic_store(¶ms->shared->current_chunk, nth); + //atomic_store(¶ms->shared->current_chunk, nth); } AlreadyQunatized:; - ggml_barrier(params->shared); } const void * wdata = (src1->type == vec_dot_type) ? src1->data |