Skip to content

Commit 415b020

Browse files
authored
Merge pull request #4150 from silx-kit/fix_opencl_convolution_cpu
`silx.opencl.convolution`: Fixed separable convolution on CPU that crashed in some cases
2 parents a7da263 + 3620fd5 commit 415b020

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/silx/opencl/convolution.py

+2
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ def _batched_convolution(self, axis, input_ref=None, output_ref=None):
385385
self.kernel_args, input_ref, output_ref
386386
)
387387
ev = opencl_kernel(*opencl_kernel_args)
388+
if self.queue.device.type == cl.device_type.CPU:
389+
ev.wait()
388390
if self.profile:
389391
self.events.append(EventDescription("batched convolution", ev))
390392

0 commit comments

Comments
 (0)