From 37709aca1356e8341a21eb915d4f2edd0250ba01 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni Date: Sun, 2 Apr 2023 10:42:56 -0500 Subject: [PATCH] respect PrefixNamed when normalizing frozen expression --- arraycontext/impl/pytato/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arraycontext/impl/pytato/utils.py b/arraycontext/impl/pytato/utils.py index e0af81c..2a3be3f 100644 --- a/arraycontext/impl/pytato/utils.py +++ b/arraycontext/impl/pytato/utils.py @@ -58,8 +58,9 @@ class _DatawrapperToBoundPlaceholderMapper(CopyMapper): f"{expr.name} => Illegal.") self.seen_inputs.add(expr.name) - # Normalizing names so that we more arrays can have the normalized DAG. - name = self.vng("_actx_dw") + # Normalizing names so that more arrays can have the same normalized DAG. + from pytato.codegen import _generate_name_for_temp + name = _generate_name_for_temp(expr, self.vng, "_actx_dw") self.bound_arguments[name] = expr.data return make_placeholder( name=name, -- GitLab