From 587ccc0e5cb93cca3e6839a1fe1a991119f87df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Sch=C3=A4fer?= Date: Tue, 21 Oct 2025 11:32:27 -0700 Subject: [PATCH] compile3: make selftests opt-in (#12851) --- .github/workflows/test.yml | 2 +- examples/openpilot/compile3.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76619c80e1..8e815624b7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -378,7 +378,7 @@ jobs: - name: Test openpilot CL compile fp16 run: FLOAT16=1 DEBUGCL=1 CL=1 IMAGE=2 python examples/openpilot/compile3.py https://gitlab.com/commaai/openpilot-lfs.git/gitlab-lfs/objects/cf6376aa9a090f0da26c280ef69eabf9bbdd51d1faac9ed392919c3db69be916 - name: Test openpilot CL compile fp32 (test correctness) - run: DEBUGCL=1 CL=1 IMAGE=2 python examples/openpilot/compile3.py https://github.com/haraschax/filedump/raw/refs/heads/master/driving_vision_fp32.onnx + run: DEBUGCL=1 CL=1 IMAGE=2 SELFTEST=1 python examples/openpilot/compile3.py https://github.com/haraschax/filedump/raw/refs/heads/master/driving_vision_fp32.onnx - name: Test openpilot LLVM compile fp16 run: FLOAT16=1 CPU=1 CPU_LLVM=1 python examples/openpilot/compile3.py https://gitlab.com/commaai/openpilot-lfs.git/gitlab-lfs/objects/cf6376aa9a090f0da26c280ef69eabf9bbdd51d1faac9ed392919c3db69be916 - name: Run process replay tests diff --git a/examples/openpilot/compile3.py b/examples/openpilot/compile3.py index 1c831aa48d..1cd021a0dc 100644 --- a/examples/openpilot/compile3.py +++ b/examples/openpilot/compile3.py @@ -134,7 +134,7 @@ if __name__ == "__main__": with open(OUTPUT, "rb") as f: pickle_loaded = pickle.load(f) test_vs_compile(pickle_loaded, inputs, outputs) - if not getenv("FLOAT16"): + if getenv("SELFTEST"): test_vs_onnx(inputs, outputs, onnx_file, 1e-4) if getenv("BENCHMARK_LOG", ""):