From 21c78b93169bbd8db6cffadf970b582346201696 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Mon, 4 Jul 2022 13:23:34 -0700 Subject: [PATCH] can be v slow --- tinygrad/llops/ops_gpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinygrad/llops/ops_gpu.py b/tinygrad/llops/ops_gpu.py index bae248aece..7994c98070 100644 --- a/tinygrad/llops/ops_gpu.py +++ b/tinygrad/llops/ops_gpu.py @@ -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 ****