MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_backend_is_cpu

Function ggml_backend_is_cpu

ggml-backend.c:403–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403bool ggml_backend_is_cpu(ggml_backend_t backend) {
404 return backend->iface.get_name == ggml_backend_cpu_name;
405}
406
407void ggml_backend_cpu_set_n_threads(ggml_backend_t backend_cpu, int n_threads) {
408 GGML_ASSERT(ggml_backend_is_cpu(backend_cpu));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected