pytc.tc._panel_blk_overrides¶
- pytc.tc._panel_blk_overrides()[source]¶
Read optional process-wide panel/block-size overrides from the env.
Returns
(panel_blk, gpu_max_memory_mb)where each isNonewhen the corresponding env var is unset (the default), so the autotuned behaviour is unchanged unless a caller opts in. These are expert escape hatches for shrinking the direct-tile / K-stream panel on memory-constrained systems; the permanent fix is to make the delta_U direct tile honourSAFE_TILE_BYTES_CEILINGlike the CCSD vvvv path (separate change).- PYTC_PANEL_BLK cap on the K-stream panel_size AND the
rank_block_size (must be ≥ 1; ignored otherwise).
- PYTC_GPU_MAX_MEMORY_MB authoritative total-GPU budget (MiB) fed into
adaptive_rank_block_size’s budget path.- PYTC_SOLVER_BLK cap on the CCSD vvvv tile panel_size in
resolve_vvvv_panel_block_sizesAND the v3o (large-blocks) tile inresolve_v3o_panel_block_size(must be ≥ 1). Use when the delta_U direct-tile pre-flight is borderline; reduces tile size O(blk²).