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).
| 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). |
| 1068 | inline 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 | } |
| 1072 | inline int64_t pf_free_mib() { |
| 1073 | size_t f = 0, t = 0; |
| 1074 | cudaMemGetInfo(&f, &t); |