Fix editorconfig and unused variable

This commit is contained in:
slaren 2024-06-13 18:06:41 +02:00
parent c39d5ecd2b
commit d3131ce565

View file

@ -3858,8 +3858,8 @@ struct llama_model_loader {
if (buf) {
ggml_backend_buffer_type_t buffer_type = ggml_backend_buffer_get_type(buf);
for (int i = 0; i < ggml_backend_cuda_get_device_count(); ++i) {
auto cuda_buffer_type = ggml_backend_cuda_buffer_type(i);
if (buffer_type == ggml_backend_cuda_buffer_type(i)) {
auto * cuda_buffer_type = ggml_backend_cuda_buffer_type(i);
if (buffer_type == cuda_buffer_type) {
cuda_backend = ggml_backend_cuda_init(i);
break;
}