mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 23:48:01 -05:00
bump assembly debug to 7 (#9662)
This commit is contained in:
@@ -41,7 +41,7 @@ class CompiledRunner(Runner):
|
||||
if DEBUG >= 4: print(p.src)
|
||||
self.p:ProgramSpec = p
|
||||
self.lib:bytes = precompiled if precompiled is not None else Device[p.device].compiler.compile_cached(p.src)
|
||||
if DEBUG >= 6: Device[p.device].compiler.disassemble(self.lib)
|
||||
if DEBUG >= 7: Device[p.device].compiler.disassemble(self.lib)
|
||||
self._prg = Device[p.device].runtime(p.function_name, self.lib)
|
||||
super().__init__(p.name, p.device, p.estimates)
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class CUDAProgram:
|
||||
def __init__(self, dev:CUDADevice, name:str, lib:bytes, smem:int=0):
|
||||
self.dev, self.name, self.lib, self.smem = dev, name, lib, smem
|
||||
if DEBUG >= 5: print("\n".join([f"{i+1:>3} {line}" for i, line in enumerate(pretty_ptx(lib.decode('utf-8')).split("\n"))]))
|
||||
if DEBUG >= 6: cuda_disassemble(lib, dev.arch)
|
||||
if DEBUG >= 7: cuda_disassemble(lib, dev.arch)
|
||||
|
||||
check(cuda.cuCtxSetCurrent(self.dev.context))
|
||||
self.module = cuda.CUmodule()
|
||||
|
||||
Reference in New Issue
Block a user