From e313c8af2043ceb8c78f8680a29bca84cb639ed6 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Tue, 24 Jan 2023 14:05:20 -0800 Subject: [PATCH] update openpilot tests from OPENCL to GPU --- .github/workflows/test.yml | 8 ++++---- openpilot/compile.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 64ab8bd6bf..be7fe793d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -148,12 +148,12 @@ jobs: python-version: 3.8 - name: Install Dependencies run: pip install -e '.[gpu,testing]' - - name: Test OPENCL ops - run: OPT=2 OPENCL=1 python3 test/test_ops.py + - name: Test GPU IMAGE ops + run: GPU=1 IMAGE=2 python3 test/test_ops.py - name: Test openpilot model run: | - ALLOWED_KERNEL_COUNT=206 FLOAT16=1 UNSAFE_FLOAT4=1 DEBUGCL=1 python3 openpilot/compile.py - UNSAFE_FLOAT4=1 DEBUGCL=1 python3 openpilot/compile.py + ALLOWED_KERNEL_COUNT=200 FLOAT16=1 VALIDHACKS=1 DEBUGCL=1 GPU=1 IMAGE=2 python3 openpilot/compile.py + UNSAFE_FLOAT4=1 DEBUGCL=1 GPU=1 IMAGE=2 python3 openpilot/compile.py testmypy: name: Mypy Tests diff --git a/openpilot/compile.py b/openpilot/compile.py index 065b1c5500..17d88f6419 100644 --- a/openpilot/compile.py +++ b/openpilot/compile.py @@ -5,7 +5,7 @@ sys.path.insert(0, str(pathlib.Path(__file__).parent.parent)) if os.getenv("OPT", None) is None: os.environ['OPT'] = '99' if os.getenv("GPU", None) is None: - os.environ['OPENCL'] = '1' + os.environ['GPU'] = '1' ALLOWED_KERNEL_COUNT = int(os.getenv("ALLOWED_KERNEL_COUNT", 0)) DEBUGCL = int(os.getenv("DEBUGCL", 0))