summaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-10-30 19:19:15 +0200
committerGitHub <noreply@github.com>2023-10-30 19:19:15 +0200
commit207b51900e15cc7f89763a3bb1c565fe11cbb45d (patch)
tree0e37b11eafe495bfc66893f70e1e471bf52c3cd4 /llama.cpp
parent6e08281e588bbba1a5d180290a94a43f167f3a1a (diff)
ggml : move FP16 <-> FP32 code to ggml-impl.h (#3861)
* ggml : move FP16 <-> FP32 stuff to ggml-impl.h ggml-ci * tests : fix ARM build * ggml : explicitly initialize deprecated type traits * ggml : add math.h to ggml-impl.h * ggml : remove duplicate static assert macros * ggml : prefix lookup tables with ggml_ ggml-ci * ggml-impl : move extern "C" to start of file
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llama.cpp b/llama.cpp
index a4340d52..e599917a 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -1467,7 +1467,7 @@ static int32_t llama_kv_cache_cell_max(const struct llama_kv_cache & cache) {
}
static void llama_kv_cache_clear(struct llama_kv_cache & cache) {
- for (int32_t i = 0; i < cache.size; ++i) {
+ for (int32_t i = 0; i < (int32_t) cache.size; ++i) {
cache.cells[i].pos = -1;
cache.cells[i].seq_id.clear();
}