mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
nv: print rpc msg with DEBUG>=3 (#11247)
This commit is contained in:
parent
034e51bd36
commit
197d345804
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class NVRpcQueue:
|
|||
self.rx.readPtr = (self.rx.readPtr + round_up(hdr.length, self.tx.msgSize) // self.tx.msgSize) % self.tx.msgCount
|
||||
System.memory_barrier()
|
||||
|
||||
if DEBUG >= 2:
|
||||
if DEBUG >= 3:
|
||||
rpc_names = {**nv.c__Ea_NV_VGPU_MSG_FUNCTION_NOP__enumvalues, **nv.c__Ea_NV_VGPU_MSG_EVENT_FIRST_EVENT__enumvalues}
|
||||
print(f"nv {self.gsp.nvdev.devfmt}: in RPC: {rpc_names.get(hdr.function, f'ev:{hdr.function:x}')}, res:{hdr.rpc_result:#x}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue