modeld: 2x faster chestnut build (#38656)

* not worth 1m

* saves 24s

* save 13s

* parallelize model compilation

* explain compiler affinity

* full cpufreq

* rm that for now

* cmt

---------

Co-authored-by: elkoled <elkoled@gmail.com>
This commit is contained in:
Adeeb Shihadeh
2026-09-17 14:31:42 -07:00
committed by GitHub
parent bd176cb6a7
commit cd1490af4b
+2 -2
View File
@@ -35,8 +35,8 @@ mac_brew_string = f'HOME={os.path.expanduser("~")}' if arch == 'Darwin' else ''
warp_deps = [File("#openpilot/system/camerad/cameras/nv12_info.py")]
compiler = Dir('#tinygrad_repo/examples/openpilot').abspath
# CPU 7 is isolated with isolcpus on AGNOS, so explicitly pin the compiler to it.
taskset = 'taskset -c 7 ' if arch == 'comma_arm64' else ''
# build on all cores
taskset = 'taskset -c 0-7 ' if arch == 'comma_arm64' else ''
def chestnut_action(command):
def do_compile(target, source, env):