aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/register_command_stream_generator.py
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2023-08-08 14:10:17 +0100
committerTim Hall <tim.hall@arm.com>2023-08-08 16:36:20 +0100
commitcd03504cfc29767d33d37b5c587116ab90752d74 (patch)
tree187d75690e7316c2e430c8c81e9f526bd8dc20a1 /ethosu/vela/register_command_stream_generator.py
parent4bd28aa1bc8d7dc952c3d4ff523d942540947280 (diff)
downloadethos-u-vela-cd03504cfc29767d33d37b5c587116ab90752d74.tar.gz
MLBEDSW-7689: Document verbose command stream options
- Documented High-Level and register-Level command stream options - Changed High-Level command stream display to show the name of the command - Fixed an issue with some operators not being displayed by the CLI option --verbose-operators - Changed an unneeded print in pass packing to a more useful assertion Change-Id: I9d53f19f4e32d0478209bc964724c27c935f66d6 Signed-off-by: Tim Hall <tim.hall@arm.com>
Diffstat (limited to 'ethosu/vela/register_command_stream_generator.py')
-rw-r--r--ethosu/vela/register_command_stream_generator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py
index 71fec3be..56aae73d 100644
--- a/ethosu/vela/register_command_stream_generator.py
+++ b/ethosu/vela/register_command_stream_generator.py
@@ -1052,6 +1052,7 @@ def generate_command_stream(
"""
emit = CommandStreamEmitter()
if verbose:
+ print("Register-Level Command Stream: Input")
print_operations(npu_op_list, npu_op_to_cmd)
# Calculate memory accesses for every operation
memory_accesses: Dict[NpuOperation, MemoryAccessSet] = {}
@@ -1105,6 +1106,7 @@ def generate_command_stream(
)
if verbose:
+ print("Register-Level Command Stream: Output")
emit.print_cmds()
print(f"Number of commands = {len(emit.cmd_stream)}")
print(f"Command stream length = {emit.size_in_bytes()} bytes")