MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / pin_cpu

Function pin_cpu

common/common.cpp:147–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static int pin_cpu(int cpu) {
148 cpu_set_t mask;
149 CPU_ZERO(&mask);
150 CPU_SET(cpu, &mask);
151 return pthread_setaffinity_np(pthread_self(), sizeof(mask), &mask);
152}
153
154static bool is_hybrid_cpu(void) {
155 unsigned eax, ebx, ecx, edx;

Callers 1

cpu_count_math_cpusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected