mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-06-28 04:30:15 -05:00
Compiler warnings
This commit is contained in:
parent
118c82d8ef
commit
de6c2dfdec
@ -1053,7 +1053,7 @@ void llama_model_loader::load_data_for(struct ggml_tensor * cur) const {
|
||||
// Returns false if cancelled by progress_callback
|
||||
bool llama_model_loader::load_all_data(
|
||||
struct ggml_context * ctx,
|
||||
struct llama_model * model,
|
||||
[[maybe_unused]] llama_model * model,
|
||||
llama_buf_map & bufs_mmap,
|
||||
llama_mlocks * lmlocks,
|
||||
llama_progress_callback progress_callback,
|
||||
|
||||
@ -7146,7 +7146,7 @@ struct llama_context * llama_init_from_model(
|
||||
// main_gpu is a local index into model->devices throughout the codebase
|
||||
// (auto-fit assigns device_count-1, MTP clamps to [0, device_count), buffer-type
|
||||
// setup wraps with model.devices[main_gpu]). Translate to a raw device id here.
|
||||
const int main_gpu_id = (model->main_gpu >= 0 && model->main_gpu < (int)model->devices.size())
|
||||
[[maybe_unused]] const int main_gpu_id = (model->main_gpu >= 0 && model->main_gpu < (int)model->devices.size())
|
||||
? model->devices[model->main_gpu]
|
||||
: model->main_gpu;
|
||||
#if defined(GGML_USE_METAL)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user