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

Function sched_allocr_prio

ggml-backend.c:476–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476static int sched_allocr_prio(ggml_backend_sched_t sched, ggml_tallocr_t allocr) {
477 for (int i = 0; i < sched->n_backends; i++) {
478 if (sched->tallocs[i] == allocr) {
479 return i;
480 }
481 }
482 return INT_MAX;
483}
484
485// returns the backend that should be used for the node based on the current locations
486char causes[GGML_DEFAULT_GRAPH_SIZE*4 + GGML_MAX_SPLITS*GGML_MAX_SPLIT_INPUTS][128]; // debug, remove

Callers 1

sched_split_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected