diff options
author | Picca Frédéric-Emmanuel <picca@debian.org> | 2021-01-06 14:10:12 +0100 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2021-01-06 14:10:12 +0100 |
commit | b3bea947efa55d2c0f198b6c6795b3177be27f45 (patch) | |
tree | 4116758aafe4483bf472c1d54b519e685737fd77 /silx/opencl/convolution.py | |
parent | 5ad425ff4e62f5e003178813ebd073577679a00e (diff) |
New upstream version 0.14.0+dfsg
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 |