From 5afa0174c5800efce404fbb25c7c0743760b657b Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 5 Jan 2025 08:37:32 -0500 Subject: [PATCH] Revert "more fix" This reverts commit 23dd423e78e60bd6a0bd73e921bfba9a5aad88bd. --- sunnypilot/modeld/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunnypilot/modeld/SConscript b/sunnypilot/modeld/SConscript index 87ca756a86..3a1ab56848 100644 --- a/sunnypilot/modeld/SConscript +++ b/sunnypilot/modeld/SConscript @@ -62,10 +62,10 @@ lenv.Command(fn + "_metadata.pkl", [fn + ".onnx"] + tinygrad_files, cmd) # Build thneed model pythonpath_string = 'PYTHONPATH="${PYTHONPATH}:' + env.Dir("#sunnypilot/tinygrad_repo").abspath + '"' if arch == "larch64" or GetOption('pc_thneed'): - tinygrad_opts = '' + tinygrad_opts = [] if not GetOption('pc_thneed'): # use FLOAT16 on device for speed + don't cache the CL kernels for space - tinygrad_opts = 'FLOAT16=1 PYOPENCL_NO_CACHE=1' + tinygrad_opts += ["FLOAT16=1", "PYOPENCL_NO_CACHE=1"] cmd = f'{pythonpath_string} {tinygrad_opts} python3 {Dir("#sunnypilot/tinygrad_repo").abspath}/openpilot/compile2.py {fn}.onnx {fn}.thneed' lenv.Command(fn + ".thneed", [fn + ".onnx"] + tinygrad_files, cmd)