Fix editorconfig and unused variable
This commit is contained in:
parent
c39d5ecd2b
commit
d3131ce565
1 changed files with 4 additions and 4 deletions
|
@ -3858,8 +3858,8 @@ struct llama_model_loader {
|
||||||
if (buf) {
|
if (buf) {
|
||||||
ggml_backend_buffer_type_t buffer_type = ggml_backend_buffer_get_type(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) {
|
for (int i = 0; i < ggml_backend_cuda_get_device_count(); ++i) {
|
||||||
auto cuda_buffer_type = ggml_backend_cuda_buffer_type(i);
|
auto * cuda_buffer_type = ggml_backend_cuda_buffer_type(i);
|
||||||
if (buffer_type == ggml_backend_cuda_buffer_type(i)) {
|
if (buffer_type == cuda_buffer_type) {
|
||||||
cuda_backend = ggml_backend_cuda_init(i);
|
cuda_backend = ggml_backend_cuda_init(i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue