diff options
author | Jonny Svärd <jonny.svaerd@arm.com> | 2022-01-04 12:38:29 +0100 |
---|---|---|
committer | Jonny Svärd <jonny.svaerd@arm.com> | 2022-01-04 15:25:55 +0100 |
commit | bdb1d6e0fce5e52979f3a5742aaddd3a68b9a0f2 (patch) | |
tree | 37f80160819a79e8c6b56eb59fc7bbe19ab78ce7 /ethosu/vela/driver_actions.py | |
parent | 3bbbed68f85c75806cd08b6453cdb678e47ceb2a (diff) | |
download | ethos-u-vela-bdb1d6e0fce5e52979f3a5742aaddd3a68b9a0f2.tar.gz |
Set product in driver action config struct
Signed-off-by: Jonny Svärd <jonny.svaerd@arm.com>
Change-Id: Ib398024c2f41beb4f93f7976c678a9fd54af94a5
Diffstat (limited to 'ethosu/vela/driver_actions.py')
-rw-r--r-- | ethosu/vela/driver_actions.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |