pull/35809/head
Bruce Wayne 4 days ago
parent 848a03a057
commit 9c1abd0dc0
  1. 7
      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:

Loading…
Cancel
Save