diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2024-01-18 16:57:28 +0000 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2024-02-07 10:57:40 +0000 |
commit | c8330811352f753e36f2ee7be4c7d0e6002f21e7 (patch) | |
tree | 967eeb59876e7c6abea26ff2e892d5ff94134992 /verif/checker/tosa_result_checker.py | |
parent | 9847722e2b172b69fe9ae80a05c27ca5c8c36617 (diff) | |
download | reference_model-c8330811352f753e36f2ee7be4c7d0e6002f21e7.tar.gz |
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 <jeremy.johnson@arm.com>
Change-Id: Ide0c9f9f80397e5f1e07ca30a1036d6014b5784d
Diffstat (limited to 'verif/checker/tosa_result_checker.py')
-rw-r--r-- | verif/checker/tosa_result_checker.py | 16 |
1 files changed, 10 insertions, 6 deletions
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( |