@@ -189,8 +189,6 @@ class EthosUBackend final : public ::executorch::runtime::BackendInterface {
189
189
// the end of the execution of the Ethos-U custom delegate
190
190
char * ethosu_scratch =
191
191
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;
194
192
ET_LOG (
195
193
Debug,
196
194
" 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 {
200
198
handles.weight_data_size ,
201
199
ethosu_scratch,
202
200
handles.scratch_data_size ,
203
- ethosu_fast_scratch ,
204
- ethosu_fast_scratch_size );
201
+ nullptr ,
202
+ 0 );
205
203
206
204
// Write argument values (from EValue tensor) into Ethos-U scratch
207
205
// TODO(MLETORCH-123): Optimise into direct write from Vela into the SRAM
@@ -311,12 +309,9 @@ class EthosUBackend final : public ::executorch::runtime::BackendInterface {
311
309
static_cast <uint64_t >(
312
310
reinterpret_cast <uintptr_t >((handles.weight_data ))),
313
311
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 };
316
313
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 };
320
315
int result = 0 ;
321
316
EXECUTORCH_PROF_START (
322
317
event_tracer, event_tracer_local_scope, " +EthosUBackend::execute()NPU" );
0 commit comments