| 152 | } |
| 153 | |
| 154 | void set_backend_threads(ggml_backend_t backend, int threads) { |
| 155 | if (ggml_backend_is_cpu(backend)) { |
| 156 | ggml_backend_cpu_set_n_threads(backend, threads); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | bool is_host_backend(ggml_backend_t backend) { |
| 161 | if (backend == nullptr) { |
no test coverage detected