diff --git a/pyopencl/algorithm.py b/pyopencl/algorithm.py index a116534001abd556bd04eecd19f5c53cb772cb5c..2dadf0ae59167ccf888a5872e77153ce0e98f3b1 100644 --- a/pyopencl/algorithm.py +++ b/pyopencl/algorithm.py @@ -1143,6 +1143,12 @@ class ListOfListsBuilder: from pyopencl.tools import VectorArg if isinstance(arg_descr, VectorArg): from pyopencl import MemoryObject + if arg_val is None: + data_args.append(arg_val) + if arg_descr.with_offset: + data_args.append(0) + continue + if isinstance(arg_val, MemoryObject): data_args.append(arg_val) if arg_descr.with_offset: