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_limit via Device.memory_stats(); the CPU backend returns None there, in which case the tier gates treat device capacity as unknown. Older jaxlib builds omit bytes_available, so fall back to bytes_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.