@@ -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