From bdb1d6e0fce5e52979f3a5742aaddd3a68b9a0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonny=20Sv=C3=A4rd?= Date: Tue, 4 Jan 2022 12:38:29 +0100 Subject: Set product in driver action config struct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonny Svärd Change-Id: Ib398024c2f41beb4f93f7976c678a9fd54af94a5 --- ethosu/vela/driver_actions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ethosu/vela/driver_actions.py b/ethosu/vela/driver_actions.py index 317b2a69..90af02c2 100644 --- a/ethosu/vela/driver_actions.py +++ b/ethosu/vela/driver_actions.py @@ -75,6 +75,10 @@ def build_config_word(arch): log2_macs_cc = int(np.log2(macs_cc) + 0.5) shram_size = arch.ncores * int(arch.shram_size_bytes / 1024) n = config_r() + if arch.is_ethos_u65_system: + n.set_product(1) + else: + n.set_product(0) # U55 n.set_shram_size(shram_size) n.set_cmd_stream_version(0) # may be incremented in the future n.set_macs_per_cc(log2_macs_cc) -- cgit v1.2.1