pytc.solver.isdf_xtc_ccsd._measure_free_device_bytes¶
- pytc.solver.isdf_xtc_ccsd._measure_free_device_bytes()[source]¶
Measured free bytes on the first local device, or None when unmeasurable.
GPU backends report
bytes_available/bytes_limitviaDevice.memory_stats(); the CPU backend returns None there, in which case the tier gates treat device capacity as unknown. Older jaxlib builds omitbytes_available, so fall back tobytes_limit - bytes_in_use; when no combination yields a value the raw stats are logged so the next run shows exactly what the device reported.