aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/architecture_features.py
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2020-08-04 21:40:14 +0100
committertim.hall <tim.hall@arm.com>2020-08-18 18:52:18 +0000
commit289a41dd26913e4d88a38c2d72057aa52d2fab09 (patch)
treeaade435f3fbb156cf0c8e9465e01a7dd82cb86ad /ethosu/vela/architecture_features.py
parentf767b937c12935be3cb1f9ee406fbb796176a40c (diff)
downloadethos-u-vela-289a41dd26913e4d88a38c2d72057aa52d2fab09.tar.gz
Vela: Rework NPU/DMA dependency insertion (for MLBEDSW-2620)
- This commit removes unnecessary dependency checks and implements on-demand calculation of the NPU/DMA dependencies. Signed-off-by: <tim.hall@arm.com> Change-Id: I85e681d1ab133bd88f64296dc00500f3c188e777
Diffstat (limited to 'ethosu/vela/architecture_features.py')
-rw-r--r--ethosu/vela/architecture_features.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ethosu/vela/architecture_features.py b/ethosu/vela/architecture_features.py
index 265af426..2e53a695 100644
--- a/ethosu/vela/architecture_features.py
+++ b/ethosu/vela/architecture_features.py
@@ -196,6 +196,9 @@ Note the difference between ArchitectureFeatures and CompilerOptions
self.system_config = system_config
self.is_yoda_system = self.accelerator_config in (Accelerator.Yoda_256, Accelerator.Yoda_512)
+ self.max_outstanding_dma = 2 if self.is_yoda_system else 1
+ self.max_outstanding_kernels = 3
+
self.ncores = accel_config.cores
self.ofm_ublock = accel_config.ofm_ublock
self.ifm_ublock = accel_config.ifm_ublock