diff --git a/doc/source/misc.rst b/doc/source/misc.rst index 56ce060cfe66582880e2821afd71a90f72d7ef55..3d1e1141f5982bb72c582e22cd6b756320caa37b 100644 --- a/doc/source/misc.rst +++ b/doc/source/misc.rst @@ -84,6 +84,7 @@ Version 0.92 * Add support for the `cl_nv_device_attribute_query <ghttp://www.khronos.org/registry/cl/extensions/khr/cl_nv_device_attribute_query.txt>`_ extension. +* Add :meth:`pyopencl.Kernel.set_args`. Version 0.91.5 diff --git a/doc/source/runtime.rst b/doc/source/runtime.rst index c1c83d8e17fa5c7a05d8c229e6270834df1b141f..00c3ef2934f36648626f5fc0d81dacf3fad76d01 100644 --- a/doc/source/runtime.rst +++ b/doc/source/runtime.rst @@ -565,7 +565,7 @@ Programs and Kernels See :class:`kernel_work_group_info` for values of *param*. - .. method:: set_arg(self, arg) + .. method:: set_arg(self, index, arg) *arg* may be @@ -594,6 +594,8 @@ Programs and Kernels Invoke :meth:`set_arg` on each element of *args* in turn. + ..versionadded:: 0.92 + .. method:: set_scalar_arg_dtypes(arg_dtypes) Inform the wrapper about the sized types of scalar diff --git a/src/wrapper/wrap_cl.hpp b/src/wrapper/wrap_cl.hpp index e001d907f11eb8e731c8de057446ac57c0ec6ba2..a07627612329bee7a0c43154e3b943d3038bf045 100644 --- a/src/wrapper/wrap_cl.hpp +++ b/src/wrapper/wrap_cl.hpp @@ -2575,7 +2575,8 @@ namespace pyopencl std::vector<size_t> result; PYOPENCL_GET_VEC_INFO(KernelWorkGroup, PYOPENCL_FIRST_ARG, param_name, result); - return py::list(result); + + PYOPENCL_RETURN_VECTOR(size_t, result); } case CL_KERNEL_LOCAL_MEM_SIZE: #ifdef CL_VERSION_1_1 diff --git a/src/wrapper/wrap_constants.cpp b/src/wrapper/wrap_constants.cpp index 4f2548bdc92bbec2ca60d8b9aea29d02fb4358b3..a81adc9b111a4c6253635482943186b8ebc14b18 100644 --- a/src/wrapper/wrap_constants.cpp +++ b/src/wrapper/wrap_constants.cpp @@ -167,6 +167,7 @@ void pyopencl_expose_constants() ADD_ATTR(DEVICE_, QUEUE_PROPERTIES); ADD_ATTR(DEVICE_, NAME); ADD_ATTR(DEVICE_, VENDOR); + ADD_ATTR(, DRIVER_VERSION); ADD_ATTR(DEVICE_, VERSION); ADD_ATTR(DEVICE_, PROFILE); ADD_ATTR(DEVICE_, VERSION);