MCPcopy 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
130int 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
136namespace {

Callers 2

TESTFunction · 0.50
InitMethod · 0.50

Calls 1

CPUIDNumSMTFunction · 0.85

Tested by 1

TESTFunction · 0.40