aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/resources
diff options
context:
space:
mode:
authorAnnie Tallund <annie.tallund@arm.com>2022-12-14 15:55:19 +0100
committerBenjamin Klimczak <benjamin.klimczak@arm.com>2023-02-08 15:17:12 +0000
commit09ecc5c8acb758e8def33155feb746a34dd7b560 (patch)
tree65c39a7f7929b745b9c5a31ab48bb4c6e97cb3ea /src/mlia/resources
parent6fbcffb4ee039438a409fbc92e38fa5d1d118833 (diff)
downloadmlia-09ecc5c8acb758e8def33155feb746a34dd7b560.tar.gz
MLIA-590 Support path to custom target profiles
- Start using TOML format for target profile - Add support for loading custom target profile files Change-Id: I6be019d4341e93115440ccdbdb6dafdc1c85b966
Diffstat (limited to 'src/mlia/resources')
-rw-r--r--src/mlia/resources/profiles.json32
-rw-r--r--src/mlia/resources/profiles.json.license3
-rw-r--r--src/mlia/resources/target_profiles/cortex-a.toml4
-rw-r--r--src/mlia/resources/target_profiles/ethos-u55-128.toml13
-rw-r--r--src/mlia/resources/target_profiles/ethos-u55-256.toml13
-rw-r--r--src/mlia/resources/target_profiles/ethos-u65-256.toml13
-rw-r--r--src/mlia/resources/target_profiles/ethos-u65-512.toml13
-rw-r--r--src/mlia/resources/target_profiles/tosa.toml4
8 files changed, 60 insertions, 35 deletions
diff --git a/src/mlia/resources/profiles.json b/src/mlia/resources/profiles.json
deleted file mode 100644
index 990cdb3..0000000
--- a/src/mlia/resources/profiles.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "ethos-u55-256": {
- "target": "ethos-u55",
- "mac": 256,
- "system_config": "Ethos_U55_High_End_Embedded",
- "memory_mode": "Shared_Sram"
- },
- "ethos-u55-128": {
- "target": "ethos-u55",
- "mac": 128,
- "system_config": "Ethos_U55_High_End_Embedded",
- "memory_mode": "Shared_Sram"
- },
- "ethos-u65-512": {
- "target": "ethos-u65",
- "mac": 512,
- "system_config": "Ethos_U65_High_End",
- "memory_mode": "Dedicated_Sram"
- },
- "ethos-u65-256": {
- "target": "ethos-u65",
- "mac": 256,
- "system_config": "Ethos_U65_High_End",
- "memory_mode": "Dedicated_Sram"
- },
- "tosa": {
- "target": "tosa"
- },
- "cortex-a": {
- "target": "cortex-a"
- }
-}
diff --git a/src/mlia/resources/profiles.json.license b/src/mlia/resources/profiles.json.license
deleted file mode 100644
index 9b83bfc..0000000
--- a/src/mlia/resources/profiles.json.license
+++ /dev/null
@@ -1,3 +0,0 @@
-SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
-
-SPDX-License-Identifier: Apache-2.0
diff --git a/src/mlia/resources/target_profiles/cortex-a.toml b/src/mlia/resources/target_profiles/cortex-a.toml
new file mode 100644
index 0000000..9de9cee
--- /dev/null
+++ b/src/mlia/resources/target_profiles/cortex-a.toml
@@ -0,0 +1,4 @@
+# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates.
+# SPDX-License-Identifier: Apache-2.0
+
+target="cortex-a"
diff --git a/src/mlia/resources/target_profiles/ethos-u55-128.toml b/src/mlia/resources/target_profiles/ethos-u55-128.toml
new file mode 100644
index 0000000..71c6ec6
--- /dev/null
+++ b/src/mlia/resources/target_profiles/ethos-u55-128.toml
@@ -0,0 +1,13 @@
+# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates.
+# SPDX-License-Identifier: Apache-2.0
+
+target="ethos-u55"
+
+# Number of MACs [32, 64, 128, 256]
+mac=128
+
+# Memory mode: [SRAM Only, Shared SRAM, Dedicated SRAM]
+memory_mode="Shared_Sram"
+
+# System configuration
+system_config="Ethos_U55_High_End_Embedded"
diff --git a/src/mlia/resources/target_profiles/ethos-u55-256.toml b/src/mlia/resources/target_profiles/ethos-u55-256.toml
new file mode 100644
index 0000000..f44cdfe
--- /dev/null
+++ b/src/mlia/resources/target_profiles/ethos-u55-256.toml
@@ -0,0 +1,13 @@
+# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates.
+# SPDX-License-Identifier: Apache-2.0
+
+target="ethos-u55"
+
+# Number of MACs [32, 64, 128, 256]
+mac=256
+
+# Memory mode: [SRAM Only, Shared SRAM, Dedicated SRAM]
+memory_mode="Shared_Sram"
+
+# System configuration
+system_config="Ethos_U55_High_End_Embedded"
diff --git a/src/mlia/resources/target_profiles/ethos-u65-256.toml b/src/mlia/resources/target_profiles/ethos-u65-256.toml
new file mode 100644
index 0000000..078f60a
--- /dev/null
+++ b/src/mlia/resources/target_profiles/ethos-u65-256.toml
@@ -0,0 +1,13 @@
+# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates.
+# SPDX-License-Identifier: Apache-2.0
+
+target="ethos-u65"
+
+# Number of MACs [256, 512]
+mac=256
+
+# Memory mode: [SRAM Only, Shared SRAM, Dedicated SRAM]
+memory_mode="Dedicated_Sram"
+
+# System configuration
+system_config="Ethos_U65_High_End"
diff --git a/src/mlia/resources/target_profiles/ethos-u65-512.toml b/src/mlia/resources/target_profiles/ethos-u65-512.toml
new file mode 100644
index 0000000..6d32e63
--- /dev/null
+++ b/src/mlia/resources/target_profiles/ethos-u65-512.toml
@@ -0,0 +1,13 @@
+# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates.
+# SPDX-License-Identifier: Apache-2.0
+
+target="ethos-u65"
+
+# Number of MACs [256, 512]
+mac=512
+
+# Memory mode: [SRAM Only, Shared SRAM, Dedicated SRAM]
+memory_mode="Dedicated_Sram"
+
+# System configuration
+system_config="Ethos_U65_High_End"
diff --git a/src/mlia/resources/target_profiles/tosa.toml b/src/mlia/resources/target_profiles/tosa.toml
new file mode 100644
index 0000000..fb179ab
--- /dev/null
+++ b/src/mlia/resources/target_profiles/tosa.toml
@@ -0,0 +1,4 @@
+# SPDX-FileCopyrightText: Copyright 2023, Arm Limited and/or its affiliates.
+# SPDX-License-Identifier: Apache-2.0
+
+target="tosa"