can be v slow

This commit is contained in:
George Hotz
2022-07-04 13:23:34 -07:00
parent 46bce4156f
commit 21c78b9316

View File

@@ -55,7 +55,7 @@ class CLProgram:
if DEBUG >= 2: CL.cl_queue.finish()
if DEBUG >= 1:
print(f"**CL** {CL.kernel_count:6d} {self.name:20s} args {len(args[2:]):5d} size {prod(args[0]):8d} kernels {str(args[0]):20s} {str(args[1]):20s}" + \
("" if DEBUG <= 1 else f"runtime {(e.profile.end - e.profile.start)/1e3:7.2f} us"))
("" if DEBUG <= 1 else f"runtime {(e.profile.end - e.profile.start)/1e3:9.2f} us"))
if DEBUG >= 4: print(self.prg)
# **** end CL wrappers ****