forked from tinygrad/tinygrad
fix define global (#4383)
* fix define global * remove name from DEFINE_GLOBAL * fix fuzzing * fix ptx * fix python
This commit is contained in:
@@ -71,7 +71,7 @@ class PythonProgram:
|
||||
dl[i] = dtype
|
||||
if uop is UOps.DEFINE_GLOBAL:
|
||||
assert dtype.fmt is not None
|
||||
ul[i] = [pbufs[arg[0]].cast(dtype.fmt)] * warp_size
|
||||
ul[i] = [pbufs.pop(0).cast(dtype.fmt)] * warp_size
|
||||
elif uop is UOps.DEFINE_LOCAL:
|
||||
assert dtype.fmt is not None
|
||||
lbuf = memoryview(bytearray(arg[1]*dtype.itemsize))
|
||||
|
||||
Reference in New Issue
Block a user