Skip to content

Commit

Permalink
fix: set metal_n_cb in test
Browse files Browse the repository at this point in the history
  • Loading branch information
abetlen committed Feb 9, 2024
1 parent ff00b0b commit bb58e86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_ggml_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
def test_ggml_backend():
def get_backend():
if ggml.ggml_cpu_has_metal():
return ggml.ggml_backend_metal_init()
backend = ggml.ggml_backend_metal_init()
ggml.ggml_backend_metal_set_n_cb(backend, 1)
return backend
elif ggml.ggml_cpu_has_cublas():
return ggml.ggml_backend_cuda_init()
elif ggml.ggml_cpu_has_vulkan():
Expand Down

0 comments on commit bb58e86

Please sign in to comment.