summaryrefslogtreecommitdiff
path: root/silx/opencl/test/test_convolution.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/opencl/test/test_convolution.py')
-rw-r--r--silx/opencl/test/test_convolution.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/silx/opencl/test/test_convolution.py b/silx/opencl/test/test_convolution.py
index c213808..27cb8a9 100644
--- a/silx/opencl/test/test_convolution.py
+++ b/silx/opencl/test/test_convolution.py
@@ -113,9 +113,18 @@ class TestConvolution(unittest.TestCase):
)
def instantiate_convol(self, shape, kernel, axes=None):
+ def is_fermi_device(dev):
+ try:
+ res = (dev.compute_capability_major_nv < 3)
+ except cl.LogicError:
+ res = False
+ except AttributeError:
+ res = False
+ return res
if (self.mode == "constant") and (
not(self.param["use_textures"])
or (self.ctx.devices[0].type == cl._cl.device_type.CPU)
+ or (is_fermi_device(self.ctx.devices[0]))
):
self.skipTest("mode=constant not implemented without textures")
C = Convolution(