From cd1490af4beca7e9edcd3b21daf6737aadff2a4a Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 17 Sep 2026 14:31:42 -0700 Subject: [PATCH] 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 --- openpilot/selfdrive/modeld/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpilot/selfdrive/modeld/SConscript b/openpilot/selfdrive/modeld/SConscript index 2aac90fe63..b6274f5cc5 100644 --- a/openpilot/selfdrive/modeld/SConscript +++ b/openpilot/selfdrive/modeld/SConscript @@ -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):