From b46702118eddcfec11487be8dd23234066642d62 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 18 May 2018 16:55:39 +0100 Subject: COMPMID-1181: Support for tracing configuration This patch adds support for tracing function and kernel configuration arguments. The trace is printed to stdout. To enable tracing run the script: scripts/enable_tracing.py and recompile the library with tracing=1. Change-Id: If6626785e263d9023899b20e175a53652d70a605 Signed-off-by: morgolock Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2712 Tested-by: Arm Jenkins Reviewed-by: Sang-Hoon Park Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- utils/TypePrinter.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 79ec367a52..b62bd69a8d 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -59,6 +59,7 @@ std::string to_string_if_not_null(T *arg) return to_string(*arg); } } + /** Formatted output of the Dimensions type. * * @param[out] os Output stream. @@ -1091,7 +1092,12 @@ inline ::std::ostream &operator<<(::std::ostream &os, const GEMMInfo &info) os << "{is_a_reshaped=" << info.is_a_reshaped() << ","; os << "is_b_reshaped=" << info.is_b_reshaped() << ","; os << "reshape_b_only_on_first_run=" << info.reshape_b_only_on_first_run() << ","; - os << "}"; + os << "depth_output_gemm3d=" << info.depth_output_gemm3d() << ","; + os << "reinterpret_input_as_3d=" << info.reinterpret_input_as_3d() << ","; + os << "retain_internal_weights=" << info.retain_internal_weights() << ","; + os << "fp_mixed_precision=" << info.fp_mixed_precision() << ","; + os << "broadcast_bias=" << info.broadcast_bias() << ","; + os << "pretranpose_B=" << info.pretranpose_B() << ","; return os; } -- cgit v1.2.1