MCPcopy Create free account
hub / github.com/Niko1221/Strata / umwait_state

Function umwait_state

engine/src/kernels/cpu/pool.cpp:95–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 return c;
94}
95unsigned umwait_state() {
96 static const unsigned s = [] { const char* e = std::getenv("STRATA_POOL_UMWAIT_C02"); return e && *e == '1' ? 0u : 1u; }();
97 return s; // 1 = C0.1 (light), 0 = C0.2
98}
99// STRATA_POOL_UMWAIT_ESC=<TSC cycles> (experimental): an escalating wait - C0.1 for the first cycles of a park, C0.2 after
100// (a wait that has lasted that long is a GPU phase, a draft or a prompt read, where a slower wake costs little).
101uint64_t umwait_escalate() {

Callers 1

workerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected