From 9946c521f78e3b2b2896d9cd1af53ecefa700c79 Mon Sep 17 00:00:00 2001 From: Pramish <139780421+pramishpy@users.noreply.github.com> Date: Tue, 8 Sep 2026 16:16:21 -0500 Subject: [PATCH] modeld: build DM warp and model JITs for all camera configs (#38767) * modeld: build DM warp and model JITs for all camera configs In #38684, camera_configs on comma_arm64 was restricted to only the host device running SCons (selecting either _os_fisheye or _ar_ox_fisheye). However, prebuilt release and nightly bundles are built on TICI/tizi runners in Jenkins and distributed to both Comma 3/3X (TICI) and Comma 4 (MICI) devices. Because the build machine was TICI, dm_warp_1344x760_tinygrad.pkl was omitted from the packaged bundle, causing dmonitoringmodeld to fail with FileNotFoundError on Comma 4 and leaving driver-monitoring calibration stuck at 0%. Restore CAMERA_CONFIGS so both camera resolutions (1928x1208 and 1344x760) are built for all platforms. Fixes #38762 * simplify --------- Co-authored-by: ZwX1616 --- openpilot/selfdrive/modeld/SConscript | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openpilot/selfdrive/modeld/SConscript b/openpilot/selfdrive/modeld/SConscript index af10467529..41e9e05d0c 100644 --- a/openpilot/selfdrive/modeld/SConscript +++ b/openpilot/selfdrive/modeld/SConscript @@ -23,14 +23,12 @@ def estimate_pickle_max_size(onnx_size): # the ONNX size. Overestimating only adds an empty trailing chunk. return 2.0 * onnx_size + 10 * 1024 * 1024 +camera_configs = [(c.width, c.height) for c in (_ar_ox_fisheye, _os_fisheye)] + if arch == 'comma_arm64': - from openpilot.common.hardware import HARDWARE - camera = _os_fisheye if HARDWARE.get_device_type() == "mici" else _ar_ox_fisheye - camera_configs = [(camera.width, camera.height)] tg_backend = 'QCOM' tg_flags = f'DEV={tg_backend} IMAGE=1 FLOAT16=1 NOLOCALS=1 JIT_BATCH_SIZE=0 OPENPILOT_HACKS=1' else: - camera_configs = [(c.width, c.height) for c in (_ar_ox_fisheye, _os_fisheye)] tg_backend = 'CPU' tg_flags = f'DEV=CPU' if arch == 'Darwin' else 'DEV=CPU:LLVM'