Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ Set
Method
Set
library/cpp/netliba/v12/cpu_affinity.cpp:35–37 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
return CPU_ISSET(i, CpuInfo);
34
}
35
void Set(size_t i) {
36
CPU_SET(i, CpuInfo);
37
}
38
#elif defined(_linux_)
39
public:
40
#define NUMCPU ((CPU_SETSIZE > MAX_SIZE) ? 1 : (MAX_SIZE / CPU_SETSIZE))
Callers
1
BindToSocket
Function · 0.45
Calls
1
Y_UNUSED
Function · 0.85
Tested by
no test coverage detected