summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Marie <alexandre.marie@synchrotron-soleil.fr>2019-07-05 16:52:20 +0200
committerAlexandre Marie <alexandre.marie@synchrotron-soleil.fr>2020-01-30 11:48:55 +0100
commitcb498df7ff67e442de09f2f50aa179a1f8a352ea (patch)
tree09bd0da99dc1375c3c7e49b1ffe6bd0a6bef3e1e
parent3ccf18d5a1eaa1eee392ee659be9b605ac497865 (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 ...