use comgr to compile (#3248)

* use comgr to compile

* fast

* bfloat16

* move comgr to it's own file

* cleaner style

* comgr in new place

* comgr free + dtype cleanup
This commit is contained in:
George Hotz
2024-01-26 18:27:49 -08:00
committed by GitHub
parent c4d870db0d
commit 473935125a
6 changed files with 15251 additions and 26 deletions

View File

@@ -14,6 +14,11 @@ class TestDeviceSpeed(unittest.TestCase):
with Timing("compiler "):
self.dev.compiler(self.empty)
def test_empty_compile_twice(self):
self.dev.compiler(self.empty)
with Timing("compiler "):
self.dev.compiler(self.empty)
def test_launch_speed(self):
prg_bin = self.dev.compiler(self.empty)
prg = self.dev.runtime("test", prg_bin)