mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
accelerated() asked docker info directly, so the variable the project already carries for this decision did nothing: setting it to 0 in .env left the CUDA image and --gpus all in place, and test_catalogs_complete_on_gpu kept running. The variable now wins where it is set, and the daemon is asked only where it is absent, which keeps every host without the container toolkit behaving as it did. utils/env/handlers/infinito/gpu_count.py derives it from the same daemon query but through setdefault, so an operator value survives make dotenv; that makes it the overridable view of the fact accelerated() used to establish on its own. Four call sites follow from it: the stale-container check, the stamp a successful deploy leaves, the --gpus flag with the -cuda suffix, and the skipUnless on the catalog completeness test. Turning it off therefore translates on the CPU, which is what turning the GPU off means here. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>