summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Marie <alexandre.marie@synchrotron-soleil.fr>2019-07-05 16:52:20 +0200
committerPicca Frédéric-Emmanuel <picca@debian.org>2020-08-04 10:25:26 +0200
commitac60db3394dc20d80bed514d9cc970da4f1b81f7 (patch)
tree3f513b8b2f99c37eb9aaadd97cc96136c14118c8
parentb9f80a6cd528a79961b197c9977bd17cfdaf04b1 (diff)
Tests if openCL can be used
Gbp-Pq: Name 0006-Tests-if-openCL-can-be-used.patch
-rw-r--r--silx/opencl/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/silx/opencl/common.py b/silx/opencl/common.py
index 110d941..3525bf4 100644
--- a/silx/opencl/common.py
+++ b/silx/opencl/common.py
@@ -75,6 +75,8 @@ if pyopencl is None:
WRITE_ONLY = 1
READ_ONLY = 1
READ_WRITE = 1
+else:
+ mf = pyopencl.mem_flags
FLOP_PER_CORE = {"GPU": 64, # GPU, Fermi at least perform 64 flops per cycle/multicore, G80 were at 24 or 48 ...