summaryrefslogtreecommitdiff
path: root/ggml/src
diff options
context:
space:
mode:
authorKawrakow <iwankawrakow@gmail.com>2024-10-04 14:43:26 +0300
committerGitHub <noreply@github.com>2024-10-04 14:43:26 +0300
commitbc79091b0e8602a8d292c22fba0d4072456d52d0 (patch)
treecddb166cf147f90050877fab1c4e0e9a3aaa5dc9 /ggml/src
parent0bf4d99774aa3b6d00ef564acbc4dc211e45db33 (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.c5
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(&params->shared->current_chunk, nth);
+ //atomic_store(&params->shared->current_chunk, nth);
}
AlreadyQunatized:;
- ggml_barrier(params->shared);
}
const void * wdata = (src1->type == vec_dot_type) ? src1->data