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