From 9c1abd0dc06b4564e61dd32b0e93375badbc9ca5 Mon Sep 17 00:00:00 2001 From: Bruce Wayne Date: Thu, 24 Jul 2025 19:08:04 -0700 Subject: [PATCH] cleaner --- selfdrive/modeld/SConscript | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/selfdrive/modeld/SConscript b/selfdrive/modeld/SConscript index 2646cb920b..c6c44ba63e 100644 --- a/selfdrive/modeld/SConscript +++ b/selfdrive/modeld/SConscript @@ -49,11 +49,8 @@ def tg_compile(flags, model_name): # Compile small models for model_name in ['driving_vision', 'driving_policy', 'dmonitoring_model']: - flags = { - 'larch64': 'DEV=QCOM', - 'Darwin': 'DEV=CPU IMAGE=0 JIT=2', - }.get(arch, 'DEV=LLVM LLVMOPT=1 BEAM=0 IMAGE=0 JIT=2') - tg_compile(flags, model_name) + TG_DEVICE = {'larch64': 'QCOM','Darwin': 'CPU'}.get(arch, 'LLVM') + tg_compile(f'DEV={TG_DEVICE}', model_name) # Compile BIG model if USB GPU is available if "USBGPU" in os.environ: