aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/main.cpp
diff options
context:
space:
mode:
authorKevin Cheng <kevin.cheng@arm.com>2021-09-23 15:25:24 -0700
committerEric Kunze <eric.kunze@arm.com>2021-09-27 15:12:04 +0000
commit6097c3db9a74a55d017e5168465c4e10b5793783 (patch)
tree8b5eee42d63c7e341741e7dc8890b12e1ca89c9f /reference_model/src/main.cpp
parente86fd34cb3881d5a9c65c1efdbda437314fb83cb (diff)
downloadreference_model-6097c3db9a74a55d017e5168465c4e10b5793783.tar.gz
Op that violates rank requirement now runs to the end and return ERROR instead of bailing out.
Signed-off-by: Kevin Cheng <kevin.cheng@arm.com> Change-Id: I61e163cfdb54057f65dc967394decc3fad53eb89
Diffstat (limited to 'reference_model/src/main.cpp')
-rw-r--r--reference_model/src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/reference_model/src/main.cpp b/reference_model/src/main.cpp
index 55a4848..cfae010 100644
--- a/reference_model/src/main.cpp
+++ b/reference_model/src/main.cpp
@@ -79,7 +79,11 @@ int main(int argc, const char** argv)
if (main_gt.validateGraph())
{
- SIMPLE_FATAL_ERROR("Failed to validate graph");
+ WARNING("Failed to validate graph. Evaluation aborted.");
+ ASSERT_MSG(main_gt.getGraphStatus() == GraphStatus::TOSA_ERROR ||
+ main_gt.getGraphStatus() == GraphStatus::TOSA_UNPREDICTABLE,
+ "Upon validateGraph() returning 1, graph can only be ERROR/UNPREDICTABLE.");
+ goto done;
}
if (g_func_config.validate_only)