Skip to content
Snippets Groups Projects
Commit 71357fad authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

ListOfListBuilder: tolerate None arguments

parent 2bb87e0f
No related branches found
No related tags found
No related merge requests found
Pipeline #331746 passed with warnings
...@@ -1143,6 +1143,12 @@ class ListOfListsBuilder: ...@@ -1143,6 +1143,12 @@ class ListOfListsBuilder:
from pyopencl.tools import VectorArg from pyopencl.tools import VectorArg
if isinstance(arg_descr, VectorArg): if isinstance(arg_descr, VectorArg):
from pyopencl import MemoryObject 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): if isinstance(arg_val, MemoryObject):
data_args.append(arg_val) data_args.append(arg_val)
if arg_descr.with_offset: if arg_descr.with_offset:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment