From fd9768e0886fc20d20af7a097cb9074e7cd8d085 Mon Sep 17 00:00:00 2001 From: Hao Gao Date: Mon, 12 Feb 2018 21:10:44 -0600 Subject: [PATCH] Fix a bug when using eliminate_empty_output_lists and omit_lists together --- pyopencl/algorithm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyopencl/algorithm.py b/pyopencl/algorithm.py index 2b14a8ef..0d6b9f58 100644 --- a/pyopencl/algorithm.py +++ b/pyopencl/algorithm.py @@ -1210,6 +1210,8 @@ class ListOfListsBuilder: write_list_args.append(None) if name not in self.count_sharing: write_list_args.append(None) + if name in self.eliminate_empty_output_lists: + write_list_args.append(None) continue if name in self.count_sharing: -- GitLab