diff options
Diffstat (limited to 'debian/patches/0006-Tests-if-openCL-can-be-used.patch')
-rw-r--r-- | debian/patches/0006-Tests-if-openCL-can-be-used.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/0006-Tests-if-openCL-can-be-used.patch b/debian/patches/0006-Tests-if-openCL-can-be-used.patch new file mode 100644 index 0000000..78a3bf8 --- /dev/null +++ b/debian/patches/0006-Tests-if-openCL-can-be-used.patch @@ -0,0 +1,21 @@ +From: Alexandre Marie <alexandre.marie@synchrotron-soleil.fr> +Date: Fri, 5 Jul 2019 16:52:20 +0200 +Subject: Tests if openCL can be used + +--- + silx/opencl/common.py | 2 ++ + 1 file changed, 2 insertions(+) + +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 ... |