update openpilot tests from OPENCL to GPU
MODIFY
.github/workflows/test.yml
.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

MODIFY
openpilot/compile.py
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))

update openpilot tests from OPENCL to GPU