From c8330811352f753e36f2ee7be4c7d0e6002f21e7 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Thu, 18 Jan 2024 16:57:28 +0000 Subject: Main Compliance: FFT2D support Improve access to DOT_PRODUCT generator index and location for debugging. Enable multiple result files for compliance and improve output. Fix up precise and abs modes for FFT2D in ref model to produce correct results and bounds using abs weights. Signed-off-by: Jeremy Johnson Change-Id: Ide0c9f9f80397e5f1e07ca30a1036d6014b5784d --- verif/checker/tosa_result_checker.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'verif/checker/tosa_result_checker.py') diff --git a/verif/checker/tosa_result_checker.py b/verif/checker/tosa_result_checker.py index 6948378..212c809 100644 --- a/verif/checker/tosa_result_checker.py +++ b/verif/checker/tosa_result_checker.py @@ -1,5 +1,5 @@ """TOSA result checker script.""" -# Copyright (c) 2020-2023, ARM Limited. +# Copyright (c) 2020-2024, ARM Limited. # SPDX-License-Identifier: Apache-2.0 import argparse import json @@ -55,9 +55,9 @@ def _print_result(color, msg): def compliance_check( - imp_result_path, - ref_result_path, - bnd_result_path, + imp_result_data, + ref_result_data, + bnd_result_data, test_name, compliance_config, ofm_name, @@ -78,14 +78,18 @@ def compliance_check( return (TestResult.INTERNAL_ERROR, 0.0, msg) success = vlib.verify_data( - ofm_name, compliance_config, imp_result_path, ref_result_path, bnd_result_path + ofm_name, compliance_config, imp_result_data, ref_result_data, bnd_result_data ) if success: _print_result(LogColors.GREEN, f"Compliance Results PASS {test_name}") return (TestResult.PASS, 0.0, "") else: _print_result(LogColors.RED, f"Results NON-COMPLIANT {test_name}") - return (TestResult.MISMATCH, 0.0, "Non-compliance results found") + return ( + TestResult.MISMATCH, + 0.0, + f"Non-compliance results found for {ofm_name}", + ) def test_check( -- cgit v1.2.1