From 289a41dd26913e4d88a38c2d72057aa52d2fab09 Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Tue, 4 Aug 2020 21:40:14 +0100 Subject: 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: Change-Id: I85e681d1ab133bd88f64296dc00500f3c188e777 --- ethosu/vela/architecture_features.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ethosu/vela/architecture_features.py') 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 -- cgit v1.2.1