summaryrefslogtreecommitdiff
path: root/silx/opencl
diff options
context:
space:
mode:
Diffstat (limited to 'silx/opencl')
-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 002c15d..e1409f2 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