mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-15 01:15:34 +00:00
Adjust int types in format strings (#2009)
* tweak format sting types This may not be all of them, but it's the ones which warn on OpenBSD * complete the changes needed to fix the format string specifers * avoid using inttypes, directly cast to size_t (u64 usually) instead --------- Co-authored-by: Concedo <39025047+LostRuins@users.noreply.github.com>
This commit is contained in:
parent
e36d7b6464
commit
2fbc3b2ae5
13 changed files with 37 additions and 37 deletions
|
|
@ -110,10 +110,10 @@ void tts_model::prep_buffers_and_context(bool cpu_only, float size_offset, uint3
|
|||
};
|
||||
if(dedicated_add_on_size>13000)
|
||||
{
|
||||
printf("Clamp TTS addon memory %zu to 13000\n",dedicated_add_on_size);
|
||||
printf("Clamp TTS addon memory %zu to 13000\n",(size_t)dedicated_add_on_size);
|
||||
dedicated_add_on_size = 13000;
|
||||
}
|
||||
printf("TTS Memory Requested: %zu, with buffer %zu + %zu\n",ctx_size,tensor_meta.n_bytes,dedicated_add_on_size);
|
||||
printf("TTS Memory Requested: %zu, with buffer %zu + %zu\n",ctx_size,tensor_meta.n_bytes,(size_t)dedicated_add_on_size);
|
||||
ctx = ggml_init(params);
|
||||
buf = ggml_backend_buft_alloc_buffer(buffer, tensor_meta.n_bytes + dedicated_add_on_size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue