Refactor ASTs (#622)

* ugh worst branch name

* compiler refactor continues

* scc -> cloc

* buf -> _buf

* finish _buf, and program -> runtime

* gpu is still working, clang isn't

* clang in new style

* ops_metal

* something broke it

* improve metal

* clean up tons of cl crap

* hack fix sync

* cleaner gpu

* gpu metal clang

* cleanups

* minor refactor

* GPUCodegen

* fix up LLVM

* blind CUDA refactor

* codegen / runtime

* keep ops naming

* linter passes

* woah, llvm was allocing 4x what it needed to

* bugfixes

* fix openpilot compiler

* fix compile_efficientnet

* method cache should fix tests

* deal with duped functions
This commit is contained in:
George Hotz
2023-03-01 18:57:29 -08:00
committed by GitHub
parent 5e41d5857c
commit bfcec234a2
34 changed files with 557 additions and 627 deletions

View File

@@ -72,7 +72,7 @@ jobs:
- name: Install Dependencies
run: pip install -e .
- name: Compile EfficientNet to C
run: CLANG=1 GPU=1 python3 examples/compile_efficientnet.py > recognize.c
run: CLANG=1 python3 examples/compile_efficientnet.py > recognize.c
- name: Compile C to native
run: clang -O2 recognize.c -lm -o recognize
- name: Test EfficientNet