@@ -119,9 +119,8 @@ else(MSVC)
119119endif (MSVC )
120120
121121# add source group
122- FILE (GLOB_RECURSE GROUP_SOURCE "src/*.cc" "nnvm/src/*.cc" )
123- FILE (GLOB_RECURSE GROUP_INCLUDE "src/*.h" "include/*.h"
124- "nnvm/src/*.h" "nnvm/include/*.h" )
122+ FILE (GLOB_RECURSE GROUP_SOURCE "src/*.cc" )
123+ FILE (GLOB_RECURSE GROUP_INCLUDE "src/*.h" "include/*.h" )
125124assign_source_group("Source" ${GROUP_SOURCE} )
126125assign_source_group("Include" ${GROUP_INCLUDE} )
127126
@@ -175,14 +174,6 @@ if(NOT MSVC)
175174 list (APPEND COMPILER_SRCS ${COMPILER_VERILOG_SRCS} )
176175endif ()
177176
178- file (GLOB_RECURSE NNVM_COMPILER_SRCS
179- nnvm/src/c_api/*.cc
180- nnvm/src/core/*.cc
181- nnvm/src/pass/*.cc
182- nnvm/src/compiler/*.cc
183- nnvm/src/top/*.cc
184- )
185-
186177file (GLOB TOPI_SRCS
187178 topi/src/*.cc
188179)
@@ -297,7 +288,6 @@ if(NOT USE_SGX STREQUAL "OFF")
297288 add_dependencies (tvm_runtime sgx_edl tvm_t)
298289 install (TARGETS tvm_t ARCHIVE DESTINATION lib${LIB_SUFFIX} )
299290endif ()
300- add_library (nnvm_compiler SHARED ${NNVM_COMPILER_SRCS} )
301291
302292if (USE_THREADS)
303293 message (STATUS "Build with thread support..." )
@@ -307,14 +297,11 @@ if(USE_THREADS)
307297 target_link_libraries (tvm Threads::Threads)
308298 target_link_libraries (tvm_topi Threads::Threads)
309299 target_link_libraries (tvm_runtime Threads::Threads)
310- target_link_libraries (nnvm_compiler Threads::Threads)
311300endif (USE_THREADS)
312301
313302target_link_libraries (tvm ${TVM_LINKER_LIBS} ${TVM_RUNTIME_LINKER_LIBS} )
314303target_link_libraries (tvm_topi tvm ${TVM_LINKER_LIBS} ${TVM_RUNTIME_LINKER_LIBS} )
315304target_link_libraries (tvm_runtime ${TVM_RUNTIME_LINKER_LIBS} )
316- target_link_libraries (tvm_runtime_static ${TVM_RUNTIME_LINKER_LIBS} )
317- target_link_libraries (nnvm_compiler tvm)
318305
319306if (HIDE_PRIVATE_SYMBOLS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
320307 set (HIDE_SYMBOLS_LINKER_FLAGS "-Wl,--exclude-libs,ALL" )
@@ -324,7 +311,6 @@ if (HIDE_PRIVATE_SYMBOLS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
324311 target_link_libraries (tvm ${HIDE_SYMBOLS_LINKER_FLAGS} )
325312 target_link_libraries (tvm_topi ${HIDE_SYMBOLS_LINKER_FLAGS} )
326313 target_link_libraries (tvm_runtime ${HIDE_SYMBOLS_LINKER_FLAGS} )
327- target_link_libraries (nnvm_compiler ${HIDE_SYMBOLS_LINKER_FLAGS} )
328314endif ()
329315
330316# Related headers
@@ -334,10 +320,7 @@ target_include_directories(
334320target_include_directories (
335321 tvm_topi
336322 PUBLIC "topi/include" )
337- target_include_directories (
338- nnvm_compiler
339- PUBLIC "nnvm/include"
340- PUBLIC "topi/include" )
323+
341324
342325# Tests
343326set (TEST_EXECS "" )
@@ -376,8 +359,6 @@ add_custom_target(runtime DEPENDS tvm_runtime)
376359install (TARGETS tvm DESTINATION lib${LIB_SUFFIX} )
377360install (TARGETS tvm_topi DESTINATION lib${LIB_SUFFIX} )
378361install (TARGETS tvm_runtime DESTINATION lib${LIB_SUFFIX} )
379- install (TARGETS tvm_runtime_static DESTINATION lib${LIB_SUFFIX} )
380- install (TARGETS nnvm_compiler DESTINATION lib${LIB_SUFFIX} )
381362
382363if (INSTALL_DEV)
383364 install (
@@ -400,11 +381,6 @@ if (INSTALL_DEV)
400381 FILES_MATCHING
401382 PATTERN "*.h"
402383 )
403- install (
404- DIRECTORY "nnvm/include/." DESTINATION "include"
405- FILES_MATCHING
406- PATTERN "*.h"
407- )
408384else (INSTALL_DEV)
409385 install (
410386 DIRECTORY "include/tvm/runtime/." DESTINATION "include/tvm/runtime"
@@ -417,5 +393,4 @@ endif(INSTALL_DEV)
417393if (MSVC )
418394 target_compile_definitions (tvm PRIVATE -DTVM_EXPORTS)
419395 target_compile_definitions (tvm_runtime PRIVATE -DTVM_EXPORTS)
420- target_compile_definitions (nnvm_compiler PRIVATE -DNNVM_EXPORTS)
421396endif ()
0 commit comments