Skip to content

Commit cfbf5d5

Browse files
pierrepaleowoutdenolf
authored andcommitted
Fix device type check
1 parent ca3cd2d commit cfbf5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/silx/opencl/convolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ 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.device.type == "CPU":
388+
if self.queue.device.type == cl.device_type.CPU:
389389
ev.wait()
390390
if self.profile:
391391
self.events.append(EventDescription("batched convolution", ev))

0 commit comments

Comments
 (0)