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

Function pf_alloc_trace

engine/src/prefill/prefill.cpp:1068–1071  ·  view source on GitHub ↗

STRATA_PF_ALLOC_TRACE=1 (diagnostic, no behaviour change; round 0216): the free-memory figure (cudaMemGetInfo) around the prompt path's allocations, against what the code asked for, to see what `bytes_needed` does not count (RESULTS-STRIX2.md).

Source from the content-addressed store, hash-verified

1066// STRATA_PF_ALLOC_TRACE=1 (diagnostic, no behaviour change; round 0216): the free-memory figure (cudaMemGetInfo) around the prompt path's
1067// allocations, against what the code asked for, to see what `bytes_needed` does not count (RESULTS-STRIX2.md).
1068inline bool pf_alloc_trace() {
1069 static const bool on = [] { const char* e = std::getenv("STRATA_PF_ALLOC_TRACE"); return e != nullptr && e[0] == '1'; }();
1070 return on;
1071}
1072inline int64_t pf_free_mib() {
1073 size_t f = 0, t = 0;
1074 cudaMemGetInfo(&f, &t);

Callers 3

pf_markFunction · 0.85
takeMethod · 0.85
initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected