diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2017-08-11 10:15:26 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2018-03-13 20:04:20 +0100 |
commit | 53a6afa227b4d02e8ce0e8b827139baada64bd30 (patch) | |
tree | ffe0de66a26c8fbe6323c3388299ec8e2899c434 | |
parent | 305c8e010186abb8d3453416f94fa8ada73b1a7a (diff) |
fix unit test
Gbp-Pq: Name 0003-fix-unit-test.patch
-rw-r--r-- | silx/opencl/common.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/silx/opencl/common.py b/silx/opencl/common.py index e955f46..07159e2 100644 --- a/silx/opencl/common.py +++ b/silx/opencl/common.py @@ -61,7 +61,14 @@ else: pyopencl = None else: import pyopencl.array as array - mf = pyopencl.mem_flags + +if pyopencl is None: + class mf(object): + WRITE_ONLY = 1 + READ_ONLY = 1 + READ_WRITE = 1 +else: + mf = pyopencl.mem_flags if pyopencl is None: # Define default mem flags |