From e66f10ee6c3c74c25db9e0fd6426991a3ed12cdc Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni Date: Mon, 14 Oct 2019 07:47:22 -0500 Subject: [PATCH] do not add entrypoint in get_callable_id --- loopy/program.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/loopy/program.py b/loopy/program.py index 9b71f9d25..4a1225a44 100644 --- a/loopy/program.py +++ b/loopy/program.py @@ -479,9 +479,10 @@ def _get_callable_ids_for_knl(knl, callables): clbl_id_collector = CallablesIDCollector() return frozenset().union(*( - _get_callable_ids_for_knl(callables[clbl].subkernel, callables) if - isinstance(callables[clbl], CallableKernel) else frozenset([clbl]) - for clbl in clbl_id_collector.map_kernel(knl))) | frozenset([knl.name]) + _get_callable_ids_for_knl(callables[clbl].subkernel, callables) | + frozenset([clbl]) if isinstance(callables[clbl], CallableKernel) else + frozenset([clbl]) + for clbl in clbl_id_collector.map_kernel(knl))) def _get_callable_ids(callables, entrypoints): -- GitLab