summaryrefslogtreecommitdiff
path: root/silx/opencl/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/opencl/common.py')
-rw-r--r--silx/opencl/common.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/silx/opencl/common.py b/silx/opencl/common.py
index 5661530..07159e2 100644
--- a/silx/opencl/common.py
+++ b/silx/opencl/common.py
@@ -34,7 +34,7 @@ __author__ = "Jerome Kieffer"
__contact__ = "Jerome.Kieffer@ESRF.eu"
__license__ = "MIT"
__copyright__ = "2012-2017 European Synchrotron Radiation Facility, Grenoble, France"
-__date__ = "05/10/2017"
+__date__ = "16/10/2017"
__status__ = "stable"
__all__ = ["ocl", "pyopencl", "mf", "release_cl_buffers", "allocate_cl_buffers",
"measure_workgroup_size", "kernel_workgroup_size"]
@@ -407,7 +407,7 @@ class OpenCL(object):
return None
def create_context(self, devicetype="ALL", useFp64=False, platformid=None,
- deviceid=None, cached=True):
+ deviceid=None, cached=True, memory=None):
"""
Choose a device and initiate a context.
@@ -421,6 +421,7 @@ class OpenCL(object):
:param platformid: integer
:param deviceid: integer
:param cached: True if we want to cache the context
+ :param memory: minimum amount of memory of the device
:return: OpenCL context on the selected device
"""
if (platformid is not None) and (deviceid is not None):