From: Georgi Gerganov Date: Sat, 18 Jan 2025 14:18:15 +0000 (+0200) Subject: cmake : add sanitizer flags for llama.cpp (llama/11279) X-Git-Tag: upstream/1.7.4+95~47 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=90171055f390cf206199e969abf3917ec9da8c27;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cmake : add sanitizer flags for llama.cpp (llama/11279) * cmake : add sanitizer flags for llama.cpp ggml-ci * tests : fix compile warnings ggml-ci * cmake : move sanitizer flags to llama_add_compile_flags ggml-ci * cmake : move llama.cpp compile flags to top level lists ggml-ci * cmake : apply only sanitizer flags at top level ggml-ci * tests : fix gguf context use in same_tensor_data * gguf-test: tensor data comparison * dummy : trigger ggml-ci * unicode : silence gcc warnings ggml-ci * ci : use sanitizer builds only in Debug mode ggml-ci * cmake : add status messages [no ci] --------- Co-authored-by: Johannes Gäßler --- diff --git a/ggml/src/gguf.cpp b/ggml/src/gguf.cpp index 655ed600..ab13669c 100644 --- a/ggml/src/gguf.cpp +++ b/ggml/src/gguf.cpp @@ -648,6 +648,10 @@ struct gguf_context * gguf_init_from_file_impl(FILE * file, struct gguf_init_par ok = ok && data != nullptr; + if (ok) { + ggml_set_name(data, "GGUF tensor data binary blob"); + } + // read the binary blob with the tensor data ok = ok && gr.read(data->data, ctx->size);