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>2021-09-08 09:41:22 +0200
commit4ae062e93f5adf15a7c6e9ef1fea16dedaa0e336 (patch)
tree6bb8fb5ed7530865cc737b88b94ca2cb7476fad7
parent22f18dabdfcdbd11586901424941aa8f44e64c44 (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 b66b7b7..da966f6 100644
--- a/silx/opencl/common.py
+++ b/silx/opencl/common.py
@@ -74,6 +74,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 ...
"CPU": 4, # CPU, at least intel's have 4 operation per cycle