aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/register_command_stream_generator.py
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2020-07-06 10:51:31 +0100
committertim.hall <tim.hall@arm.com>2020-07-06 10:12:15 +0000
commit42e4189689a7ded7e2a804f6263a7c588fbb66cd (patch)
treeae749a6169f4c2303c26c595ebae8c09fc29bba1 /ethosu/vela/register_command_stream_generator.py
parent04ce34c07cf7fcd0a8ddb29df6f59846862b24f2 (diff)
downloadethos-u-vela-42e4189689a7ded7e2a804f6263a7c588fbb66cd.tar.gz
MLBEDSW-2600: Fix writing of register for wrong architecture
- Parallelism mode register was being written for non Yoda targets. Signed-off-by: Tim Hall <tim.hall@arm.com> Change-Id: I31b50031dab4d615733c4c3790dec8934117f275
Diffstat (limited to 'ethosu/vela/register_command_stream_generator.py')
-rw-r--r--ethosu/vela/register_command_stream_generator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py
index 6cd81433..3b294983 100644
--- a/ethosu/vela/register_command_stream_generator.py
+++ b/ethosu/vela/register_command_stream_generator.py
@@ -391,7 +391,8 @@ def generate_register_command_stream(nng, sg, arch, verbose=False):
param = 0
emit.cmd_wait(cmd0.NPU_OP_DMA_WAIT, param, absolute_dep[CommandType.DMA][0])
- emit.cmd0_with_param(cmd0.NPU_SET_PARALLEL_MODE, arch.ncores-1)
+ if arch.is_yoda_system:
+ emit.cmd0_with_param(cmd0.NPU_SET_PARALLEL_MODE, arch.ncores-1)
for cmd in cmd_stream:
if cmd.cmdtype == CommandType.DMA: