From a47e66778f2ec37ac72c12d170c0a683e34bb079 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 21 Mar 2016 21:45:47 -0500 Subject: [PATCH] Fix tracing after type system apocalypse --- loopy/codegen/instruction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/loopy/codegen/instruction.py b/loopy/codegen/instruction.py index 06803f76e..871ed10a7 100644 --- a/loopy/codegen/instruction.py +++ b/loopy/codegen/instruction.py @@ -152,13 +152,13 @@ def generate_expr_instruction_code(kernel, insn, codegen_state): for i in assignee_indices) if kernel.options.trace_assignment_values: - if target_dtype.kind == "i": + if lhs_dtype.numpy_dtype.kind == "i": printf_format += " = %d" printf_args.append(lhs_code) - elif target_dtype.kind == "f": + elif lhs_dtype.numpy_dtype.kind == "f": printf_format += " = %g" printf_args.append(lhs_code) - elif target_dtype.kind == "c": + elif lhs_dtype.numpy_dtype.kind == "c": printf_format += " = %g + %gj" printf_args.extend([ "(%s).x" % lhs_code, -- GitLab