Skip to content
Snippets Groups Projects
Commit 48235bee authored by Syam Gadde's avatar Syam Gadde
Browse files

Some OpenCL implementations break if event list is empty.

parent 1ff3de9f
No related branches found
No related tags found
No related merge requests found
......@@ -1855,6 +1855,8 @@ Event.profile = property(ProfilingInfoGetter)
def wait_for_events(wait_for):
if wait_for is None or len(wait_for) == 0:
return
_handle_error(_lib.wait_for_events(*_clobj_list(wait_for)))
......
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