Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ NumHyperthreadsPerCore
Function
NumHyperthreadsPerCore
tensorflow/core/platform/posix/port.cc:130–133 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
128
}
129
130
int NumHyperthreadsPerCore() {
131
static const int ht_per_core = tensorflow::port::CPUIDNumSMT();
132
return (ht_per_core > 0) ? ht_per_core : 1;
133
}
134
135
#ifdef TENSORFLOW_USE_NUMA
136
namespace {
Callers
2
TEST
Function · 0.50
Init
Method · 0.50
Calls
1
CPUIDNumSMT
Function · 0.85
Tested by
1
TEST
Function · 0.40