forked from tinygrad/tinygrad
ruff: else-raise and else-return (#5175)
* ruff: enable else-raise and else-return * ruff: add error names * fix order --------- Co-authored-by: chenyu <[email protected]>
This commit is contained in:
co-authored by
chenyu
parent
f88f71d73a
commit
26e254c42b
@@ -63,11 +63,11 @@ class PythonProgram:
|
||||
if g: _store(m, o, v)
|
||||
i += 1
|
||||
continue
|
||||
elif uop is UOps.ENDRANGE:
|
||||
if uop is UOps.ENDRANGE:
|
||||
loop_ends[idp[0]] = i
|
||||
i = idp[0]
|
||||
continue
|
||||
elif uop in (UOps.BARRIER, UOps.IF, UOps.ENDIF):
|
||||
if uop in (UOps.BARRIER, UOps.IF, UOps.ENDIF):
|
||||
# in the python emulator, the warp is always in sync
|
||||
i += 1
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user