aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ethosu/vela/architecture_features.py4
-rw-r--r--ethosu/vela/test/extapi/test_extapi_generate_commands.py33
2 files changed, 2 insertions, 35 deletions
diff --git a/ethosu/vela/architecture_features.py b/ethosu/vela/architecture_features.py
index 7c0d311..59c9841 100644
--- a/ethosu/vela/architecture_features.py
+++ b/ethosu/vela/architecture_features.py
@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: Copyright 2020-2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
+# SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -286,7 +286,7 @@ class ArchitectureFeatures:
axi_port_address_width = 32
axi_port_data_width = 64
- self.max_outstanding_kernels = 3
+ self.max_outstanding_kernels = 2
self.ncores = accel_config.cores
self.ofm_ublock = accel_config.ofm_ublock
diff --git a/ethosu/vela/test/extapi/test_extapi_generate_commands.py b/ethosu/vela/test/extapi/test_extapi_generate_commands.py
index 6284faa..b21aae3 100644
--- a/ethosu/vela/test/extapi/test_extapi_generate_commands.py
+++ b/ethosu/vela/test/extapi/test_extapi_generate_commands.py
@@ -744,39 +744,6 @@ def test_kernel_wait_1():
pos = check_cmd0(cmds, cmd0.NPU_OP_DMA_START, 0, pos)
-def test_kernel_wait_2():
- """
- Verify that KERNEL_WAIT 2 is generated.
- dma_ops[i] writes to the weight-address for conv_ops[i]
- """
- conv_ops, dma_ops = setup_memory_barrier_tests()
- cmds = npu_generate_register_command_stream(
- [conv_ops[0], conv_ops[1], conv_ops[2], dma_ops[0]], NpuAccelerator.Ethos_U65_256
- )
- pos = check_cmd0(cmds, cmd0.NPU_OP_CONV, 0)
- pos = check_cmd0(cmds, cmd0.NPU_OP_CONV, 0, pos + 1)
- pos = check_cmd0(cmds, cmd0.NPU_OP_CONV, 0, pos + 1)
- pos = check_cmd0(cmds, cmd0.NPU_OP_KERNEL_WAIT, 2, pos)
- pos = check_cmd0(cmds, cmd0.NPU_OP_DMA_START, 0, pos)
-
-
-def test_kernel_wait_3():
- """
- Verify that KERNEL_WAIT 2 is generated.
- dma_ops[i] writes to the weight-address for conv_ops[i]
- """
- conv_ops, dma_ops = setup_memory_barrier_tests()
- cmds = npu_generate_register_command_stream(
- [conv_ops[0], conv_ops[1], conv_ops[2], dma_ops[3], dma_ops[0]], NpuAccelerator.Ethos_U65_256
- )
- pos = check_cmd0(cmds, cmd0.NPU_OP_CONV, 0)
- pos = check_cmd0(cmds, cmd0.NPU_OP_CONV, 0, pos + 1)
- pos = check_cmd0(cmds, cmd0.NPU_OP_CONV, 0, pos + 1)
- pos = check_cmd0(cmds, cmd0.NPU_OP_DMA_START, 0, pos)
- pos = check_cmd0(cmds, cmd0.NPU_OP_KERNEL_WAIT, 2, pos)
- pos = check_cmd0(cmds, cmd0.NPU_OP_DMA_START, 0, pos)
-
-
def test_check_mem_limits():
# Tests that no code is generated with addresses out of bounds
conv_op = create_fully_connected_op()