Skip to content

Commit 7482161

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Remove fast scratch part for now
Summary: Fix CI Differential Revision: D74939323
1 parent 9aaea31 commit 7482161

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

backends/arm/runtime/EthosUBackend.cpp

Lines changed: 4 additions & 7 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,11 @@ 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+
nullptr};
316313
size_t bases_size[ETHOSU_NUM_BASE_ADDRS] = {
317314
handles.weight_data_size,
318315
handles.scratch_data_size,
319-
ethosu_fast_scratch_size};
316+
0};
320317
int result = 0;
321318
EXECUTORCH_PROF_START(
322319
event_tracer, event_tracer_local_scope, "+EthosUBackend::execute()NPU");

0 commit comments

Comments
 (0)