MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / pin_cpu

Function pin_cpu

subprojects/llama.cpp/common/common.cpp:149–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

cpu_count_math_cpusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected