Files
tinygrad/examples
755dfb243b rename CPU_COUNT to NUM_CPU_THREADS with cgroup awareness (#17263)
Rename CPU_COUNT to NUM_CPU_THREADS so it can be overridden via env var.
Default uses _get_cpu_count() which respects cgroup limits:
  - os.process_cpu_count() on Python 3.13+
  - /sys/fs/cgroup/cpu.max on cgroup v2
  - /sys/fs/cgroup/cpu/cpu.cfs_quota_us on cgroup v1
  - os.sched_getaffinity(0) fallback

Use NUM_CPU_THREADS.value in the dataloader instead of cpu_count(),
and update export_model.py and all renderer references.

Co-authored-by: teeny-runner <runner@teeny>
2026-07-28 15:33:57 -07:00
..
2026-04-21 16:46:38 -04:00
2023-03-11 16:28:10 -08:00
2026-03-23 19:31:51 +08:00
2026-07-10 14:19:46 -07:00
2026-04-14 16:27:54 -04:00
2025-08-10 20:33:22 -04:00
2026-04-14 16:27:54 -04:00
2025-12-01 22:50:53 -08:00
2026-03-18 18:42:00 -07:00