diff options
author | Henrik Hoglind <henrik.hoglind@arm.com> | 2020-10-29 10:12:15 +0100 |
---|---|---|
committer | Henrik Hoglind <henrik.hoglind@arm.com> | 2020-11-02 14:24:24 +0100 |
commit | 78f7f94d8f37aa88fc3c73c2e74fac903e5e89f9 (patch) | |
tree | 3edbf7c545a07ed1cd770897d54956f98a959215 /tensorflow.cmake | |
parent | 68c1f1b463691fadbccef22e22d59f5e61546ca2 (diff) | |
download | ethos-u-core-software-78f7f94d8f37aa88fc3c73c2e74fac903e5e89f9.tar.gz |
Add ethosu_core_driver as tflu link library
The ethosu_core_driver is added as target link library to
get the correct order of libraries when linking to avoid
missing symbols.
Change-Id: I39c5fdb9f94a4a8af080e37a39c7cb41d13d664a
Diffstat (limited to 'tensorflow.cmake')
-rw-r--r-- | tensorflow.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow.cmake b/tensorflow.cmake index 6275f3d..66fb97c 100644 --- a/tensorflow.cmake +++ b/tensorflow.cmake @@ -75,6 +75,10 @@ add_dependencies(tflu tflu_gen) target_include_directories(tflu INTERFACE ${TENSORFLOW_PATH}) target_compile_definitions(tflu INTERFACE TF_LITE_STATIC_MEMORY) +if(CORE_SOFTWARE_ACCELERATOR STREQUAL NPU) + target_link_libraries(tflu INTERFACE ethosu_core_driver) +endif() + # Install libraries and header files get_target_property(TFLU_IMPORTED_LOCATION tflu IMPORTED_LOCATION) install(FILES ${TFLU_IMPORTED_LOCATION} DESTINATION "lib") |