summaryrefslogtreecommitdiff
path: root/silx/opencl/test/test_backprojection.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/opencl/test/test_backprojection.py')
-rw-r--r--silx/opencl/test/test_backprojection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/silx/opencl/test/test_backprojection.py b/silx/opencl/test/test_backprojection.py
index b2f2070..9dfdd3a 100644
--- a/silx/opencl/test/test_backprojection.py
+++ b/silx/opencl/test/test_backprojection.py
@@ -96,8 +96,9 @@ class TestFBP(unittest.TestCase):
# Therefore, we cannot expect results to be the "same" (up to float32
# numerical error)
self.tol = 5e-2
- if self.fbp.is_cpu:
+ if not(self.fbp._use_textures) or self.fbp.device.type == "CPU":
# Precision is less when using CPU
+ # (either CPU textures or "manual" linear interpolation)
self.tol *= 2
def tearDown(self):