aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/architecture_features.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/architecture_features.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/architecture_features.py')
-rw-r--r--ethosu/vela/architecture_features.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ethosu/vela/architecture_features.py b/ethosu/vela/architecture_features.py
index dc668895..1dce435e 100644
--- a/ethosu/vela/architecture_features.py
+++ b/ethosu/vela/architecture_features.py
@@ -167,7 +167,7 @@ Note the difference between ArchitectureFeatures and CompilerOptions
self.system_config = system_config
- is_yoda_system = "yoda-" in self.accelerator_config
+ self.is_yoda_system = "yoda-" in self.accelerator_config
self.ncores = accel_config.cores
self.ofm_ublock = accel_config.ofm_ublock
@@ -199,7 +199,7 @@ Note the difference between ArchitectureFeatures and CompilerOptions
self.memory_port_widths = np.zeros(MemArea.Size)
# Get system configuration
- self.__read_sys_config(is_yoda_system)
+ self.__read_sys_config(self.is_yoda_system)
# apply the global memory clock scales to the individual ones from the system config
for mem in MemArea.all():
@@ -230,7 +230,7 @@ Note the difference between ArchitectureFeatures and CompilerOptions
self.default_feature_map_format = TensorFormat.NHWC
# This is to ignore permanent_storage = On/OffChipflash for Yoda
- if not is_yoda_system and permanent_storage != MemArea.OffChipFlash:
+ if not self.is_yoda_system and permanent_storage != MemArea.OffChipFlash:
self.permanent_storage_mem_area = permanent_storage
self.tensor_storage_mem_area = {
@@ -274,7 +274,7 @@ Note the difference between ArchitectureFeatures and CompilerOptions
self.cycles_weight = 40
self.max_sram_used_weight = 1000
- if is_yoda_system:
+ if self.is_yoda_system:
self.max_sram_used_weight = 1000
# Shared Buffer Block allocations