Skip to content

Commit

Permalink
BUG: small bug fix while iterating over local_work_size
Browse files Browse the repository at this point in the history
  • Loading branch information
srossross committed Jan 6, 2012
1 parent 9fa2a74 commit b810c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencl/queue.pyx
Expand Up @@ -448,7 +448,7 @@ cdef class Queue:


work_group_size = kernel.work_group_size(self.device) work_group_size = kernel.work_group_size(self.device)
prod_shape = 1 prod_shape = 1
for d in range(local_work_size): for d in local_work_size:
prod_shape *= d prod_shape *= d
if work_group_size < prod_shape: if work_group_size < prod_shape:
ps = '*'.join([str(x) for x in local_work_size]) ps = '*'.join([str(x) for x in local_work_size])
Expand Down

0 comments on commit b810c9c

Please sign in to comment.