Python uop emulator (#3327)

* start uop emu

* tiny_add passes

* more ops

* emulate the whole warp

* test_gemm passes

* metal gemm test pass

* works on big gemm

* works on big gemm

* more tests pass

* touch ups

* fix mypy

* cleanups

* exp2 mypy

* arch is where it belongs

* actually emulate tensor cores

* fix test

* new style
This commit is contained in:
George Hotz 2024-02-08 19:24:55 +01:00 committed by GitHub
commit c32ea95d7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 216 additions and 42 deletions

View file

@ -55,6 +55,8 @@ jobs:
PYTHONPATH="." python test/external/fuzz_shapetracker_math.py
- name: Test shapetracker to_movement_ops
run: PYTHONPATH="." python extra/to_movement_ops.py
- name: Test emulated METAL tensor cores
run: DEBUG=2 EMULATE_METAL=1 FORWARD_ONLY=1 PYTHON=1 python3 test/test_ops.py TestOps.test_big_gemm
- name: Use as an external package
run: |
mkdir $HOME/test_external_dir