Skip to content

Commit a1cf044

Browse files
foldlJudd
authored andcommitted
1 parent 3395a68 commit a1cf044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2906,7 +2906,7 @@ static size_t llama_get_device_memory(const llama_model & model, int device) {
29062906
#elif defined(GGML_USE_CANN)
29072907
size_t total;
29082908
size_t free;
2909-
ggml_backend_cann_get_device_memory(device, &total, &free);
2909+
ggml_backend_cann_get_device_memory(device, &free, &total);
29102910
return free;
29112911
#else
29122912
return 1;

0 commit comments

Comments
 (0)