mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
fix GPU profiling
This commit is contained in:
parent
b2eca6d45f
commit
3aac9aefce
2 changed files with 3 additions and 0 deletions
1
ane/2_compile/.gitignore
vendored
1
ane/2_compile/.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
*.hwx
|
||||
anecompiler.swap.*
|
||||
context_switch_log.txt
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ class ProfileOp:
|
|||
if DEBUG: self.st = time.time()
|
||||
def __exit__(self, *junk):
|
||||
if DEBUG:
|
||||
if cl_queue is not None:
|
||||
cl_queue.finish()
|
||||
et = (time.time()-self.st)*1000.
|
||||
debug_counts[self.name] += 1
|
||||
debug_times[self.name] += et
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue