Skip to content

Commit 7d9dd46

Browse files
authored
Arm backend: Remove fast scratch part for now
Differential Revision: D74939323 Pull Request resolved: #10958
1 parent 9663bfb commit 7d9dd46

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

backends/arm/runtime/EthosUBackend.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ class EthosUBackend final : public ::executorch::runtime::BackendInterface {
189189
// the end of the execution of the Ethos-U custom delegate
190190
char* ethosu_scratch =
191191
static_cast<char*>(temp_allocator->allocate(handles.scratch_data_size));
192-
extern size_t ethosu_fast_scratch_size;
193-
extern unsigned char* ethosu_fast_scratch;
194192
ET_LOG(
195193
Debug,
196194
"EthosUBackend::execute: Running program data:\n cmd %p %zu\n weight %p %zu\n scratch %p %zu\n fast scratch %p %zu\n",
@@ -200,8 +198,8 @@ class EthosUBackend final : public ::executorch::runtime::BackendInterface {
200198
handles.weight_data_size,
201199
ethosu_scratch,
202200
handles.scratch_data_size,
203-
ethosu_fast_scratch,
204-
ethosu_fast_scratch_size);
201+
nullptr,
202+
0);
205203

206204
// Write argument values (from EValue tensor) into Ethos-U scratch
207205
// TODO(MLETORCH-123): Optimise into direct write from Vela into the SRAM
@@ -311,12 +309,9 @@ class EthosUBackend final : public ::executorch::runtime::BackendInterface {
311309
static_cast<uint64_t>(
312310
reinterpret_cast<uintptr_t>((handles.weight_data))),
313311
static_cast<uint64_t>(reinterpret_cast<uintptr_t>(ethosu_scratch)),
314-
static_cast<uint64_t>(
315-
reinterpret_cast<uintptr_t>(ethosu_fast_scratch))};
312+
0};
316313
size_t bases_size[ETHOSU_NUM_BASE_ADDRS] = {
317-
handles.weight_data_size,
318-
handles.scratch_data_size,
319-
ethosu_fast_scratch_size};
314+
handles.weight_data_size, handles.scratch_data_size, 0};
320315
int result = 0;
321316
EXECUTORCH_PROF_START(
322317
event_tracer, event_tracer_local_scope, "+EthosUBackend::execute()NPU");

0 commit comments

Comments
 (0)