Skip to content

Commit 3c50483

Browse files
committed
Fix for scheduling in some corner cases.
1 parent 8e5f40f commit 3c50483

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/gpuarray_array.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,11 @@ int GpuArray_take1(GpuArray *a, const GpuArray *v, const GpuArray *i,
499499
pl = ls[0];
500500
ls[0] = ls[1];
501501
ls[1] = pl;
502+
gs[0] = 1;
503+
} else {
504+
gs[0] = gs[1];
505+
gs[1] = 1;
502506
}
503-
gs[0] = 1;
504507

505508
argp = 0;
506509
GpuKernel_setarg(&k, argp++, a->data);

0 commit comments

Comments
 (0)