Skip to content

Commit bf8e3f8

Browse files
mergennachinfacebook-github-bot
authored andcommitted
Fix arm CI test
Summary: https://github.com/pytorch/executorch/actions/runs/7849522096/job/21423067611 Let's use the new shiny API instead Differential Revision: D53627686
1 parent 338fc62 commit bf8e3f8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

examples/arm/ethos-u-setup/core_platform/patches/0006-Executorch-Add-executorch_runner-test.patch

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ index 1fa2b2e..68e5427 100644
1717
--- a/applications/CMakeLists.txt
1818
+++ b/applications/CMakeLists.txt
1919
@@ -28,6 +28,8 @@ add_subdirectory(threadx_demo)
20-
20+
2121
add_subdirectory(message_handler_openamp)
22-
22+
2323
+add_subdirectory(executorch_tests)
2424
+
2525
if (CMAKE_CXX_COMPILER_ID STREQUAL "ARMClang")
@@ -224,7 +224,8 @@ index 0000000..7ef920d
224224
+ ET_LOG(Info,"Method loaded.");
225225
+
226226
+ ET_LOG(Info,"Preparing inputs...");
227-
+ auto inputs = torch::executor::util::PrepareInputTensors(*method);
227+
+ auto inputs = torch::executor::util::prepare_input_tensors(*method);
228+
+ ASSERT_TRUE(inputs.ok());
228229
+ ET_LOG(Info,"Input prepared.");
229230
+
230231
+ ET_LOG(Info,"Starting the model execution...");
@@ -252,17 +253,17 @@ index a21d9f0..036f189 100644
252253
+++ b/cmake/helpers.cmake
253254
@@ -85,7 +85,7 @@ endfunction()
254255
#############################################################################
255-
256+
256257
function(ethosu_add_executable target)
257258
- cmake_parse_arguments(ARGS "" "TARGET_LIBRARY" "SOURCES;LIBRARIES" ${ARGN})
258259
+ cmake_parse_arguments(ARGS "WHOLE_ARCHIVE" "TARGET_LIBRARY" "SOURCES;LIBRARIES" ${ARGN})
259260
add_executable(${target})
260-
261+
261262
target_sources(${target} PRIVATE
262263
@@ -95,8 +95,17 @@ function(ethosu_add_executable target)
263264
set(ARGS_TARGET_LIBRARY ethosu_target_init)
264265
endif()
265-
266+
266267
+ if (ARGS_WHOLE_ARCHIVE)
267268
+ set(PRE_LINKER_FLAGS "-Wl,--whole-archive")
268269
+ set(POST_LINKER_FLAGS "-Wl,--no-whole-archive")
@@ -271,13 +272,12 @@ index a21d9f0..036f189 100644
271272
target_link_libraries(${target} PRIVATE
272273
- ${ARGS_TARGET_LIBRARY} ${ARGS_LIBRARIES})
273274
+ ${PRE_LINKER_FLAGS}
274-
+ ${ARGS_TARGET_LIBRARY}
275+
+ ${ARGS_TARGET_LIBRARY}
275276
+ ${ARGS_LIBRARIES}
276277
+ ${POST_LINKER_FLAGS}
277278
+ )
278-
279+
279280
ethosu_eval_link_options(${target})
280-
281-
--
282-
2.42.0
283281

282+
--
283+
2.42.0

0 commit comments

Comments
 (0)