MCPcopy
hub / github.com/tinygrad/tinygrad / pred_exec

Method pred_exec

tinygrad/runtime/ops_amd.py:72–78  ·  view source on GitHub ↗
(self, xcc_mask:int)

Source from the content-addressed store, hash-verified

70
71 @contextlib.contextmanager
72 def pred_exec(self, xcc_mask:int):
73 if self.dev.xccs > 1:
74 self.pkt3(self.pm4.PACKET3_PRED_EXEC, xcc_mask << 24)
75 prev_len = len(self._q)
76 yield
77 if self.dev.xccs > 1:
78 self._q[prev_len-1] |= (len(self._q) - prev_len)
79
80 def set_grbm(self, instance=None, se=None, sh=None, wgp=None):
81 instance_val = (wgp << 2 | (instance or 0)) if wgp is not None else instance

Callers 7

pmc_readMethod · 0.95
sqtt_setup_execMethod · 0.95
sqtt_startMethod · 0.95
sqtt_stopMethod · 0.95
execMethod · 0.95
timestampMethod · 0.95
signalMethod · 0.95

Calls 1

pkt3Method · 0.95

Tested by

no test coverage detected