diff options
author | Alexandre Marie <alexandre.marie@synchrotron-soleil.fr> | 2019-07-05 16:52:20 +0200 |
---|---|---|
committer | Stefano Rivera <stefanor@debian.org> | 2023-02-03 21:46:19 +0100 |
commit | 47d90426791738f027ceb2b8849bff1d969c7069 (patch) | |
tree | 1f169d826e2ce352cc298a9e3e5888e5b1babc48 | |
parent | d0f7b5761aa15980831e1c4fff7d9f46a26df522 (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.py | 2 |
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 |