Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ SetAffinity
Method
SetAffinity
library/cpp/netliba/v12/cpu_affinity.cpp:28–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
return error == 0;
27
}
28
bool SetAffinity() {
29
int error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, -1, sizeof(CpuInfo), CpuInfo);
30
return error == 0;
31
}
32
bool IsSet(size_t i) {
33
return CPU_ISSET(i, CpuInfo);
34
}
Callers
1
BindToSocket
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected