diff options
author | Alexandre Marie <alexandre.marie@synchrotron-soleil.fr> | 2019-07-05 16:52:20 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2022-02-10 15:15:16 +0100 |
commit | 141e36c1bd360ca441bf665b2a9df70af43e0b45 (patch) | |
tree | 2a23c8298479ff5a18bfe3ebe6287893e16a3b19 | |
parent | 93d7c707e89603404e8ba5256e60c0bafd1aa0b4 (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 60849d6..888b1da 100644 --- a/src/silx/opencl/common.py +++ b/src/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 |