You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by jr...@apache.org on 2021/12/02 04:57:29 UTC

[tvm] branch main updated: [microNPU] fix the CMake to keep utils.cc (#9630)

This is an automated email from the ASF dual-hosted git repository.

jroesch pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 5014b74  [microNPU] fix the CMake to keep utils.cc (#9630)
5014b74 is described below

commit 5014b7410c6f493ff723e0dbaf7e2c0f688729f9
Author: Manupa Karunaratne <ma...@arm.com>
AuthorDate: Thu Dec 2 04:57:02 2021 +0000

    [microNPU] fix the CMake to keep utils.cc (#9630)
    
    If the build does not use USE_ETHOSU ON,
    it will report that Object definitions are missing.
    This change will keep the file that has the Object
    definitions.
    
    Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
---
 cmake/modules/contrib/EthosU.cmake | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cmake/modules/contrib/EthosU.cmake b/cmake/modules/contrib/EthosU.cmake
index f66e4af..f437975 100644
--- a/cmake/modules/contrib/EthosU.cmake
+++ b/cmake/modules/contrib/EthosU.cmake
@@ -20,4 +20,10 @@ if(USE_ETHOSU)
        CONFIGURE_DEPENDS src/relay/backend/contrib/ethosu/*
        CONFIGURE_DEPENDS src/contrib/ethosu/cascader/*)
   list(APPEND COMPILER_SRCS ${COMPILER_ETHOSU_SRCS})
+else()
+  # Keeping just utils.cc because it has Object definitions
+  # used by python side
+  file(GLOB COMPILER_ETHOSU_SRCS
+          CONFIGURE_DEPENDS src/relay/backend/contrib/ethosu/utils.cc)
+  list(APPEND COMPILER_SRCS ${COMPILER_ETHOSU_SRCS})
 endif(USE_ETHOSU)
\ No newline at end of file