Merge pull request !90 from taoxiangdong/developmentpull/90/MERGE
| @@ -30,7 +30,7 @@ if (ENABLE_OPEN_SRC) | |||||
| endif() | endif() | ||||
| set(GE_LIB_PATH ${GE_LIB_PATH}/${GE_SYS_ARCH}) | set(GE_LIB_PATH ${GE_LIB_PATH}/${GE_SYS_ARCH}) | ||||
| find_module(slog libslog.so ${GE_LIB_PATH}) | find_module(slog libslog.so ${GE_LIB_PATH}) | ||||
| find_module(mmpa libmmpa.so ${GE_LIB_PATH}) | |||||
| find_module(static_mmpa libmmpa.a ${GE_LIB_PATH}) | |||||
| find_module(error_manager liberror_manager.so ${GE_LIB_PATH}) | find_module(error_manager liberror_manager.so ${GE_LIB_PATH}) | ||||
| else() | else() | ||||
| if(DEFINED ENV{ASCEND_CUSTOM_PATH}) | if(DEFINED ENV{ASCEND_CUSTOM_PATH}) | ||||
| @@ -42,7 +42,7 @@ if (ENABLE_OPEN_SRC) | |||||
| set(ASCEND_ATC_DIR ${ASCEND_DIR}/atc/lib64) | set(ASCEND_ATC_DIR ${ASCEND_DIR}/atc/lib64) | ||||
| find_module(slog libslog.so ${ASCEND_ATC_DIR}) | find_module(slog libslog.so ${ASCEND_ATC_DIR}) | ||||
| find_module(mmpa libmmpa.so ${ASCEND_ATC_DIR}) | |||||
| find_module(static_mmpa libmmpa.a ${ASCEND_ATC_DIR}) | |||||
| find_module(error_manager liberror_manager.so ${ASCEND_ATC_DIR}) | find_module(error_manager liberror_manager.so ${ASCEND_ATC_DIR}) | ||||
| endif() | endif() | ||||
| @@ -1 +1 @@ | |||||
| Subproject commit 1b09ed04b6dd22d1aed1bee92fd42736c0fafc65 | |||||
| Subproject commit 6bdf2e3011150b200fdcd2acd18b7186902534b6 | |||||
| @@ -92,6 +92,7 @@ target_include_directories(fmk_parser PRIVATE | |||||
| target_link_libraries(fmk_parser | target_link_libraries(fmk_parser | ||||
| $<BUILD_INTERFACE:intf_pub> | $<BUILD_INTERFACE:intf_pub> | ||||
| static_mmpa | |||||
| -Wl,--no-as-needed | -Wl,--no-as-needed | ||||
| ascend_protobuf | ascend_protobuf | ||||
| error_manager | error_manager | ||||
| @@ -101,10 +102,10 @@ target_link_libraries(fmk_parser | |||||
| _caffe_parser | _caffe_parser | ||||
| c_sec | c_sec | ||||
| slog | slog | ||||
| mmpa | |||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| json | json | ||||
| -lrt | -lrt | ||||
| -ldl | |||||
| ) | ) | ||||
| ################################################################## | ################################################################## | ||||
| @@ -538,7 +538,7 @@ Status CaffeModelParser::ReadModelWithoutWarning(const char *model_path, google: | |||||
| return FAILED; | return FAILED; | ||||
| } | } | ||||
| int32_t fd = mmOpen(kDevNull, O_RDWR); | |||||
| int32_t fd = mmOpen(kDevNull, M_RDWR); | |||||
| if (fd < 0) { | if (fd < 0) { | ||||
| (void)mmClose(copy_fd); | (void)mmClose(copy_fd); | ||||
| ErrorManager::GetInstance().ATCReportErrMessage("E19001", {"file", "errmsg"}, {kDevNull, strerror(errno)}); | ErrorManager::GetInstance().ATCReportErrMessage("E19001", {"file", "errmsg"}, {kDevNull, strerror(errno)}); | ||||
| @@ -75,13 +75,13 @@ target_include_directories(parser_common PRIVATE | |||||
| target_link_libraries(parser_common PRIVATE | target_link_libraries(parser_common PRIVATE | ||||
| $<BUILD_INTERFACE:intf_pub> | $<BUILD_INTERFACE:intf_pub> | ||||
| static_mmpa | |||||
| -Wl,--no-as-needed | -Wl,--no-as-needed | ||||
| graph | graph | ||||
| ascend_protobuf | ascend_protobuf | ||||
| register | register | ||||
| c_sec | c_sec | ||||
| slog | slog | ||||
| mmpa | |||||
| error_manager | error_manager | ||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| json | json | ||||
| @@ -94,11 +94,12 @@ LOCAL_SHARED_LIBRARIES := \ | |||||
| libascend_protobuf \ | libascend_protobuf \ | ||||
| libslog \ | libslog \ | ||||
| libgraph \ | libgraph \ | ||||
| libmmpa \ | |||||
| libc_sec \ | libc_sec \ | ||||
| liberror_manager \ | liberror_manager \ | ||||
| libregister \ | libregister \ | ||||
| LOCAL_STATIC_LIBRARIES += libmmpa | |||||
| LOCAL_LDFLAGS := -lrt -ldl | LOCAL_LDFLAGS := -lrt -ldl | ||||
| include $(BUILD_HOST_SHARED_LIBRARY) | include $(BUILD_HOST_SHARED_LIBRARY) | ||||
| @@ -115,7 +115,6 @@ LOCAL_C_INCLUDES := $(COMMON_LOCAL_C_INCLUDES) | |||||
| LOCAL_SHARED_LIBRARIES := \ | LOCAL_SHARED_LIBRARIES := \ | ||||
| libascend_protobuf \ | libascend_protobuf \ | ||||
| libslog \ | libslog \ | ||||
| libmmpa \ | |||||
| libc_sec \ | libc_sec \ | ||||
| liberror_manager \ | liberror_manager \ | ||||
| libparser_common \ | libparser_common \ | ||||
| @@ -123,7 +122,9 @@ LOCAL_SHARED_LIBRARIES := \ | |||||
| libregister \ | libregister \ | ||||
| lib_caffe_parser \ | lib_caffe_parser \ | ||||
| LOCAL_LDFLAGS := -lrt | |||||
| LOCAL_STATIC_LIBRARIES += libmmpa | |||||
| LOCAL_LDFLAGS := -lrt -ldl | |||||
| include $(BUILD_HOST_SHARED_LIBRARY) | include $(BUILD_HOST_SHARED_LIBRARY) | ||||
| @@ -62,6 +62,7 @@ target_include_directories(fmk_onnx_parser PRIVATE | |||||
| target_link_libraries(fmk_onnx_parser PRIVATE | target_link_libraries(fmk_onnx_parser PRIVATE | ||||
| $<BUILD_INTERFACE:intf_pub> | $<BUILD_INTERFACE:intf_pub> | ||||
| static_mmpa | |||||
| -Wl,--no-as-needed | -Wl,--no-as-needed | ||||
| ascend_protobuf | ascend_protobuf | ||||
| register | register | ||||
| @@ -69,10 +70,10 @@ target_link_libraries(fmk_onnx_parser PRIVATE | |||||
| parser_common | parser_common | ||||
| graph | graph | ||||
| slog | slog | ||||
| mmpa | |||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| json | json | ||||
| -lrt | -lrt | ||||
| -ldl | |||||
| ) | ) | ||||
| ############ install ############ | ############ install ############ | ||||
| @@ -46,12 +46,13 @@ LOCAL_C_INCLUDES := \ | |||||
| LOCAL_SHARED_LIBRARIES := \ | LOCAL_SHARED_LIBRARIES := \ | ||||
| libascend_protobuf \ | libascend_protobuf \ | ||||
| libslog \ | libslog \ | ||||
| libmmpa \ | |||||
| libc_sec \ | libc_sec \ | ||||
| libparser_common \ | libparser_common \ | ||||
| libgraph \ | libgraph \ | ||||
| libregister \ | libregister \ | ||||
| LOCAL_LDFLAGS := -lrt | |||||
| LOCAL_STATIC_LIBRARIES += libmmpa | |||||
| LOCAL_LDFLAGS := -lrt -ldl | |||||
| include $(BUILD_HOST_SHARED_LIBRARY) | include $(BUILD_HOST_SHARED_LIBRARY) | ||||