Skip to content

Commit 3db27d2

Browse files
oscarandersson8218kirklandsign
authored andcommitted
Arm backend: Add tosa_spec info to .tosa files (#9392)
Arm backend output files will now be named as `output_tag<N>_<tosa_spec>.tosa` instead of `output_tag.tosa`. Signed-off-by: Oscar Andersson <[email protected]>
1 parent da45eea commit 3db27d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backends/arm/test/misc/test_debug_feats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ def test_collate_tosa_BI_tests(self):
197197
"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests"
198198
)
199199
assert os.path.exists(
200-
"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests/output_tag6.tosa"
200+
"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests/output_tag6_TOSA-0.80+BI.tosa"
201201
)
202202
assert os.path.exists(
203-
"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests/desc_tag6.json"
203+
"test_collate_tosa_tests/tosa-bi/TestCollateTosaTests/test_collate_tosa_BI_tests/desc_tag6_TOSA-0.80+BI.json"
204204
)
205205

206206
os.environ.pop("TOSA_TESTCASES_BASE_PATH")

backends/arm/tosa_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def preprocess( # noqa: C901
125125
dbg_tosa_dump(
126126
tosa_graph,
127127
artifact_path,
128-
suffix="{}".format(f"_{tag}" if tag else ""),
128+
suffix="{}".format(f"_{tag}" if tag else "") + (f"_{tosa_spec}"),
129129
)
130130

131131
# Serialize and return the TOSA flatbuffer.

0 commit comments

Comments
 (0)