mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
hotfix: GRAPH_ONE_KERNEL + fix timing
This commit is contained in:
@@ -19,8 +19,8 @@ if __name__ == "__main__":
|
||||
st = time.perf_counter()
|
||||
c = plus(a,b)
|
||||
et = time.perf_counter() - st
|
||||
Device[c.device].synchronize()
|
||||
print(f"nosync {i}: {et*1e6:.2f} us")
|
||||
Device[c.device].synchronize()
|
||||
for i in range(5):
|
||||
st = time.perf_counter()
|
||||
c = plus(a,b)
|
||||
|
||||
Reference in New Issue
Block a user