MCPcopy
hub / github.com/tinygrad/tinygrad / get_dev_addr

Method get_dev_addr

extra/hcq2/hcq2.py:167–168  ·  view source on GitHub ↗
(self, uop:UOp)

Source from the content-addressed store, hash-verified

165 def __init__(self, device:str): self.device, self.blob, self.patches = device, b'', []
166
167 def get_dev_addr(self, uop:UOp) -> UOp:
168 return UOp(Ops.GETADDR, dtypes.uint64, src=(uop,)) if unwrap_after(uop).op in (Ops.BUFFER, Ops.BUFFER_VIEW, Ops.BINARY) else uop
169
170 def append(self, *data, dtype=dtypes.uint32):
171 for d in data:

Callers 9

appendMethod · 0.95
waitMethod · 0.80
storeMethod · 0.80
timestampMethod · 0.80
programMethod · 0.80
copyMethod · 0.80
waitMethod · 0.80
storeMethod · 0.80
timestampMethod · 0.80

Calls 2

UOpClass · 0.90
unwrap_afterFunction · 0.85

Tested by

no test coverage detected