summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Marie <alexandre.marie@synchrotron-soleil.fr>2019-07-05 16:52:20 +0200
committerStefano Rivera <stefanor@debian.org>2023-02-03 21:46:19 +0100
commit47d90426791738f027ceb2b8849bff1d969c7069 (patch)
tree1f169d826e2ce352cc298a9e3e5888e5b1babc48
parentd0f7b5761aa15980831e1c4fff7d9f46a26df522 (diff)
Tests if openCL can be used
Gbp-Pq: Name 0006-Tests-if-openCL-can-be-used.patch
-rw-r--r--src/silx/opencl/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/silx/opencl/common.py b/src/silx/opencl/common.py
index cf51406..5702f74 100644
--- a/src/silx/opencl/common.py
+++ b/src/silx/opencl/common.py
@@ -73,6 +73,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