diff options
Diffstat (limited to 'silx/opencl/convolution.py')
-rw-r--r-- | silx/opencl/convolution.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/silx/opencl/convolution.py b/silx/opencl/convolution.py index 138b985..15ef931 100644 --- a/silx/opencl/convolution.py +++ b/silx/opencl/convolution.py @@ -91,17 +91,8 @@ class Convolution(OpenclProcessing): } extra_opts = extra_options or {} self.extra_options.update(extra_opts) - self.is_cpu = (self.device.type == "CPU") self.use_textures = not(self.extra_options["dont_use_textures"]) - self.use_textures *= not(self.is_cpu) - # Nvidia Fermi GPUs (compute capability 2.X) do not support opencl read_imagef - try: - cc = self.ctx.devices[0].compute_capability_major_nv - self.use_textures *= (cc >= 3) - except cl.LogicError: # probably not a Nvidia GPU - pass - except AttributeError: # probably not a Nvidia GPU - pass + self.use_textures &= self.check_textures_availability() def _get_dimensions(self, shape, kernel): self.shape = shape |