forked from mindspore-Ecosystem/mindspore
!18539 upload libmslite_nnie so
Merge pull request !18539 from zhaodezan/master
This commit is contained in:
commit
f56079d67b
|
@ -256,16 +256,22 @@ elseif(PLATFORM_ARM32)
|
||||||
install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${RUNTIME_INC_DIR}/api
|
install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${RUNTIME_INC_DIR}/api
|
||||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE)
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE)
|
||||||
__install_micro_wrapper()
|
__install_micro_wrapper()
|
||||||
if(MSLITE_ENABLE_TOOLS)
|
|
||||||
install(TARGETS ${BENCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
||||||
if(SUPPORT_TRAIN)
|
|
||||||
install(TARGETS ${BENCHMARK_TRAIN_NAME} RUNTIME DESTINATION ${BENCHMARK_TRAIN_ROOT_DIR} COMPONENT
|
|
||||||
${RUNTIME_COMPONENT_NAME})
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
if(MSLITE_ENABLE_NNIE AND TARGET_HIMIX200)
|
if(MSLITE_ENABLE_NNIE AND TARGET_HIMIX200)
|
||||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libmslite_nnie.so
|
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libmslite_nnie.so
|
||||||
DESTINATION ${RUNTIME_PKG_NAME}/providers/3516D COMPONENT ${RUNTIME_COMPONENT_NAME})
|
DESTINATION ${RUNTIME_PKG_NAME}/providers/3516D COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
|
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libnnie_proposal.so
|
||||||
|
DESTINATION ${RUNTIME_PKG_NAME}/providers/3516D COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
|
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/benchmark
|
||||||
|
DESTINATION ${RUNTIME_PKG_NAME}/providers/3516D COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
|
else()
|
||||||
|
if(MSLITE_ENABLE_TOOLS)
|
||||||
|
install(TARGETS ${BENCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR}
|
||||||
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
|
if(SUPPORT_TRAIN)
|
||||||
|
install(TARGETS ${BENCHMARK_TRAIN_NAME} RUNTIME DESTINATION ${BENCHMARK_TRAIN_ROOT_DIR}
|
||||||
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
get_filename_component(CXX_DIR ${CMAKE_CXX_COMPILER} PATH)
|
get_filename_component(CXX_DIR ${CMAKE_CXX_COMPILER} PATH)
|
||||||
|
@ -370,9 +376,11 @@ else()
|
||||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/cropper/cropper_mapping_npu.cfg
|
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/cropper/cropper_mapping_npu.cfg
|
||||||
DESTINATION ${CROPPER_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
DESTINATION ${CROPPER_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
endif()
|
endif()
|
||||||
if(NOT SUPPORT_TRAIN AND MSLITE_ENABLE_NNIE)
|
if(NOT SUPPORT_TRAIN)
|
||||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/build/schema/ DESTINATION ${CONVERTER_ROOT_DIR}/include/schema
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/build/schema/ DESTINATION ${CONVERTER_ROOT_DIR}/include/schema
|
||||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||||
|
endif()
|
||||||
|
if(NOT SUPPORT_TRAIN AND MSLITE_ENABLE_NNIE)
|
||||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/abstract/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/abstract
|
install(DIRECTORY ${TOP_DIR}/mindspore/core/abstract/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/abstract
|
||||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/base/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/base
|
install(DIRECTORY ${TOP_DIR}/mindspore/core/base/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/base
|
||||||
|
@ -390,12 +398,16 @@ else()
|
||||||
file(GLOB PROTOBUF_LIB_PATH ${TOP_DIR}/mindspore/lite/build/.mslib/protobuf_*/lib/libprotobuf.a)
|
file(GLOB PROTOBUF_LIB_PATH ${TOP_DIR}/mindspore/lite/build/.mslib/protobuf_*/lib/libprotobuf.a)
|
||||||
install(FILES ${PROTOBUF_LIB_PATH} DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
install(FILES ${PROTOBUF_LIB_PATH} DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
||||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libmslite_nnie_converter.so
|
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libmslite_converter_plugin.so
|
||||||
DESTINATION ${CONVERTER_ROOT_DIR}/providers/3516D/ COMPONENT ${RUNTIME_COMPONENT_NAME})
|
DESTINATION ${CONVERTER_ROOT_DIR}/providers/3516D/ COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libmslite_nnie_data_process.so
|
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libmslite_nnie_data_process.so
|
||||||
DESTINATION ${CONVERTER_ROOT_DIR}/providers/3516D COMPONENT ${RUNTIME_COMPONENT_NAME})
|
DESTINATION ${CONVERTER_ROOT_DIR}/providers/3516D COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libnnie_mapper.so
|
install(FILES ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/libnnie_mapper.so
|
||||||
DESTINATION ${CONVERTER_ROOT_DIR}/providers/3516D COMPONENT ${RUNTIME_COMPONENT_NAME})
|
DESTINATION ${CONVERTER_ROOT_DIR}/providers/3516D COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
|
install(FILES ${TOP_DIR}/mindspore/ccsrc/backend/optimizer/common/pass.h
|
||||||
|
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
|
install(FILES ${TOP_DIR}/mindspore/lite/tools/converter/model_parser.h
|
||||||
|
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/opencv-4.2.0/lib/
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/tools/providers/NNIE/3516D/opencv-4.2.0/lib/
|
||||||
DESTINATION ${CONVERTER_ROOT_DIR}/providers/3516D/third_party/opencv-4.2.0
|
DESTINATION ${CONVERTER_ROOT_DIR}/providers/3516D/third_party/opencv-4.2.0
|
||||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.so*")
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.so*")
|
||||||
|
|
|
@ -4,20 +4,22 @@ set(COMMON_SRC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../src/common/file_utils.cc
|
${CMAKE_CURRENT_SOURCE_DIR}/../../src/common/file_utils.cc
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../src/common/utils.cc
|
${CMAKE_CURRENT_SOURCE_DIR}/../../src/common/utils.cc
|
||||||
)
|
)
|
||||||
|
if(NOT TARGET_HIMIX200)
|
||||||
|
add_executable(benchmark
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/main.cc
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/benchmark.cc
|
||||||
|
${COMMON_SRC})
|
||||||
|
|
||||||
add_executable(benchmark
|
add_dependencies(benchmark fbs_src)
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/main.cc
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/benchmark.cc
|
|
||||||
${COMMON_SRC})
|
|
||||||
|
|
||||||
add_dependencies(benchmark fbs_src)
|
if(PLATFORM_ARM32 OR PLATFORM_ARM64)
|
||||||
|
if(SUPPORT_NPU AND ANDROID_STL STREQUAL "c++_static")
|
||||||
if(PLATFORM_ARM32 OR PLATFORM_ARM64 AND NOT TARGET_HIMIX200)
|
target_link_libraries(benchmark mindspore-lite mindspore::json c++_shared)
|
||||||
if(SUPPORT_NPU AND ANDROID_STL STREQUAL "c++_static")
|
else()
|
||||||
target_link_libraries(benchmark mindspore-lite mindspore::json c++_shared)
|
target_link_libraries(benchmark mindspore-lite mindspore::json)
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
target_link_libraries(benchmark mindspore-lite mindspore::json)
|
target_link_libraries(benchmark mindspore-lite mindspore::json pthread)
|
||||||
endif()
|
endif()
|
||||||
else()
|
|
||||||
target_link_libraries(benchmark mindspore-lite mindspore::json pthread)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue