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

Function fmt_size

ggml-backend.c:528–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528static char * fmt_size(size_t size) {
529 static char buffer[128];
530 if (size >= 1024*1024) {
531 sprintf(buffer, "%zuM", size/1024/1024);
532 } else {
533 sprintf(buffer, "%zuK", size/1024);
534 }
535 return buffer;
536}
537
538static void sched_print_assignments(ggml_backend_sched_t sched, struct ggml_cgraph * graph) {
539 int cur_split = 0;

Callers 1

sched_print_assignmentsFunction · 0.70

Calls 1

sprintfFunction · 0.85

Tested by

no test coverage detected