mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 01:05:09 +02: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:
committed by
GitHub
parent
e36d7b6464
commit
2fbc3b2ae5
@@ -821,7 +821,7 @@ void populate_kokoro_ipa_map(std::string executable_path)
|
||||
}
|
||||
}
|
||||
myfile.close();
|
||||
printf("\nPopulated Kokoro IPA: %d entries\n", kokoro_ipa_map.size());
|
||||
printf("\nPopulated Kokoro IPA: %zu entries\n", kokoro_ipa_map.size());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user