Skip to content

Commit 3ef3040

Browse files
committed
Fix gs length check in python.
1 parent f526272 commit 3ef3040

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygpu/gpuarray.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ cdef class GpuKernel:
24552455
raise ValueError, "nd mismatch for gs (int)"
24562456
gs[0] = py_gs
24572457
elif isinstance(py_gs, (list, tuple)):
2458-
if len(py_gs) < 3:
2458+
if len(py_gs) > 3:
24592459
raise ValueError, "gs is not of length 3 or less"
24602460
if len(py_ls) != nd:
24612461
raise ValueError, "nd mismatch for gs (tuple)"

0 commit comments

Comments
 (0)