| @@ -625,6 +625,7 @@ target_compile_definitions(ge_runner PRIVATE | |||||
| target_compile_options(ge_runner PRIVATE | target_compile_options(ge_runner PRIVATE | ||||
| -O2 | -O2 | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_include_directories(ge_runner PRIVATE | target_include_directories(ge_runner PRIVATE | ||||
| @@ -669,7 +670,6 @@ target_link_libraries(ge_runner PRIVATE | |||||
| c_sec | c_sec | ||||
| slog | slog | ||||
| runtime | runtime | ||||
| resource | |||||
| error_manager | error_manager | ||||
| ascend_hal_stub | ascend_hal_stub | ||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| @@ -693,6 +693,7 @@ target_compile_definitions(ge_compiler PRIVATE | |||||
| target_compile_options(ge_compiler PRIVATE | target_compile_options(ge_compiler PRIVATE | ||||
| -O2 | -O2 | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_include_directories(ge_compiler PRIVATE | target_include_directories(ge_compiler PRIVATE | ||||
| @@ -734,7 +735,6 @@ target_link_libraries(ge_compiler PRIVATE | |||||
| error_manager | error_manager | ||||
| slog | slog | ||||
| runtime_compile | runtime_compile | ||||
| resource | |||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| json | json | ||||
| -lrt | -lrt | ||||
| @@ -80,6 +80,7 @@ target_compile_options(ge_common PRIVATE | |||||
| -O2 | -O2 | ||||
| -Werror | -Werror | ||||
| -Wno-deprecated-declarations | -Wno-deprecated-declarations | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_include_directories(ge_common PRIVATE | target_include_directories(ge_common PRIVATE | ||||
| @@ -134,7 +135,7 @@ target_compile_definitions(ge_common_static PRIVATE | |||||
| ) | ) | ||||
| target_compile_options(ge_common_static PRIVATE | target_compile_options(ge_common_static PRIVATE | ||||
| $<$<OR:$<STREQUAL:${TARGET_SYSTEM_NAME},Linux>,$<STREQUAL:${TARGET_SYSTEM_NAME},Android>>:-fvisibility=hidden -O2 -Werror -Wno-deprecated-declarations> | |||||
| $<$<OR:$<STREQUAL:${TARGET_SYSTEM_NAME},Linux>,$<STREQUAL:${TARGET_SYSTEM_NAME},Android>>:-fvisibility=hidden -O2 -Werror -Wno-deprecated-declarations -fno-common> | |||||
| $<$<AND:$<STREQUAL:${TARGET_SYSTEM_NAME},Windows>,$<STREQUAL:${CMAKE_CONFIGURATION_TYPES},Debug>>:/MTd> | $<$<AND:$<STREQUAL:${TARGET_SYSTEM_NAME},Windows>,$<STREQUAL:${CMAKE_CONFIGURATION_TYPES},Debug>>:/MTd> | ||||
| $<$<AND:$<STREQUAL:${TARGET_SYSTEM_NAME},Windows>,$<STREQUAL:${CMAKE_CONFIGURATION_TYPES},Release>>:/MT> | $<$<AND:$<STREQUAL:${TARGET_SYSTEM_NAME},Windows>,$<STREQUAL:${CMAKE_CONFIGURATION_TYPES},Release>>:/MT> | ||||
| ) | ) | ||||
| @@ -162,7 +162,7 @@ set(SRC_LIST | |||||
| add_library(ge_executor STATIC ${SRC_LIST} ${PROTO_HDRS}) | add_library(ge_executor STATIC ${SRC_LIST} ${PROTO_HDRS}) | ||||
| target_compile_options(ge_executor PRIVATE | target_compile_options(ge_executor PRIVATE | ||||
| $<$<OR:$<STREQUAL:${TARGET_SYSTEM_NAME},Linux>,$<STREQUAL:${TARGET_SYSTEM_NAME},Android>>:-fvisibility=hidden -O2 -Werror -Wno-deprecated-declarations> | |||||
| $<$<OR:$<STREQUAL:${TARGET_SYSTEM_NAME},Linux>,$<STREQUAL:${TARGET_SYSTEM_NAME},Android>>:-fvisibility=hidden -O2 -Werror -Wno-deprecated-declarations -fno-common> | |||||
| $<$<AND:$<STREQUAL:${TARGET_SYSTEM_NAME},Windows>,$<STREQUAL:${CMAKE_CONFIGURATION_TYPES},Debug>>:/MTd> | $<$<AND:$<STREQUAL:${TARGET_SYSTEM_NAME},Windows>,$<STREQUAL:${CMAKE_CONFIGURATION_TYPES},Debug>>:/MTd> | ||||
| $<$<AND:$<STREQUAL:${TARGET_SYSTEM_NAME},Windows>,$<STREQUAL:${CMAKE_CONFIGURATION_TYPES},Release>>:/MT> | $<$<AND:$<STREQUAL:${TARGET_SYSTEM_NAME},Windows>,$<STREQUAL:${CMAKE_CONFIGURATION_TYPES},Release>>:/MT> | ||||
| ) | ) | ||||
| @@ -26,6 +26,7 @@ add_library(ge_local_engine SHARED ${SRC_LIST} ${PROTO_HDRS}) | |||||
| target_compile_options(ge_local_engine PRIVATE | target_compile_options(ge_local_engine PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(ge_local_engine PRIVATE | target_compile_definitions(ge_local_engine PRIVATE | ||||
| @@ -55,10 +56,8 @@ target_link_libraries(ge_local_engine PRIVATE | |||||
| -Wl,--no-as-needed | -Wl,--no-as-needed | ||||
| graph | graph | ||||
| ascend_protobuf | ascend_protobuf | ||||
| register | |||||
| c_sec | c_sec | ||||
| slog | slog | ||||
| runtime | |||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| ) | ) | ||||
| @@ -67,6 +66,7 @@ add_library(atc_ge_local_engine SHARED ${SRC_LIST} ${PROTO_HDRS}) | |||||
| target_compile_options(atc_ge_local_engine PRIVATE | target_compile_options(atc_ge_local_engine PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(atc_ge_local_engine PRIVATE | target_compile_definitions(atc_ge_local_engine PRIVATE | ||||
| @@ -97,10 +97,8 @@ target_link_libraries(atc_ge_local_engine PRIVATE | |||||
| -Wl,--no-as-needed | -Wl,--no-as-needed | ||||
| graph | graph | ||||
| ascend_protobuf | ascend_protobuf | ||||
| register | |||||
| c_sec | c_sec | ||||
| slog | slog | ||||
| runtime_compile | |||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| ) | ) | ||||
| @@ -114,6 +112,7 @@ add_library(ge_local_opskernel_builder SHARED ${OPS_KERNEL_SRC_LIST} ${PROTO_HDR | |||||
| target_compile_options(ge_local_opskernel_builder PRIVATE | target_compile_options(ge_local_opskernel_builder PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(ge_local_opskernel_builder PRIVATE | target_compile_definitions(ge_local_opskernel_builder PRIVATE | ||||
| @@ -154,6 +153,7 @@ add_library(atc_ge_local_opskernel_builder SHARED ${OPS_KERNEL_SRC_LIST} ${PROTO | |||||
| target_compile_options(atc_ge_local_opskernel_builder PRIVATE | target_compile_options(atc_ge_local_opskernel_builder PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(atc_ge_local_opskernel_builder PRIVATE | target_compile_definitions(atc_ge_local_opskernel_builder PRIVATE | ||||
| @@ -199,6 +199,7 @@ add_library(ge_local_opskernel_builder_static STATIC ${OPS_KERNEL_SRC_LIST} ${PR | |||||
| target_compile_options(ge_local_opskernel_builder_static PRIVATE | target_compile_options(ge_local_opskernel_builder_static PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(ge_local_opskernel_builder_static PRIVATE | target_compile_definitions(ge_local_opskernel_builder_static PRIVATE | ||||
| @@ -14,6 +14,7 @@ add_library(ge_memory STATIC ${SRC_LIST}) | |||||
| target_compile_options(ge_memory PRIVATE | target_compile_options(ge_memory PRIVATE | ||||
| -Werror | -Werror | ||||
| -O2 | -O2 | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(ge_memory PRIVATE | target_compile_definitions(ge_memory PRIVATE | ||||
| @@ -20,6 +20,7 @@ add_library(host_cpu_engine SHARED ${SRC_LIST} ${PROTO_HDRS}) | |||||
| target_compile_options(host_cpu_engine PRIVATE | target_compile_options(host_cpu_engine PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(host_cpu_engine PRIVATE | target_compile_definitions(host_cpu_engine PRIVATE | ||||
| @@ -49,9 +50,7 @@ target_link_libraries(host_cpu_engine PRIVATE | |||||
| ascend_protobuf | ascend_protobuf | ||||
| c_sec | c_sec | ||||
| graph | graph | ||||
| register | |||||
| slog | slog | ||||
| runtime | |||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| ) | ) | ||||
| @@ -60,6 +59,7 @@ add_library(atc_host_cpu_engine SHARED ${SRC_LIST} ${PROTO_HDRS}) | |||||
| target_compile_options(atc_host_cpu_engine PRIVATE | target_compile_options(atc_host_cpu_engine PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(atc_host_cpu_engine PRIVATE | target_compile_definitions(atc_host_cpu_engine PRIVATE | ||||
| @@ -90,9 +90,7 @@ target_link_libraries(atc_host_cpu_engine PRIVATE | |||||
| ascend_protobuf | ascend_protobuf | ||||
| c_sec | c_sec | ||||
| graph | graph | ||||
| register | |||||
| slog | slog | ||||
| runtime_compile | |||||
| -Wl,--as-needed | -Wl,--as-needed | ||||
| ) | ) | ||||
| @@ -106,6 +104,7 @@ add_library(host_cpu_opskernel_builder SHARED ${CPU_OPS_KERNEL_LIST}) | |||||
| target_compile_options(host_cpu_opskernel_builder PRIVATE | target_compile_options(host_cpu_opskernel_builder PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(host_cpu_opskernel_builder PRIVATE | target_compile_definitions(host_cpu_opskernel_builder PRIVATE | ||||
| @@ -145,6 +144,7 @@ add_library(atc_host_cpu_opskernel_builder SHARED ${CPU_OPS_KERNEL_LIST}) | |||||
| target_compile_options(atc_host_cpu_opskernel_builder PRIVATE | target_compile_options(atc_host_cpu_opskernel_builder PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(atc_host_cpu_opskernel_builder PRIVATE | target_compile_definitions(atc_host_cpu_opskernel_builder PRIVATE | ||||
| @@ -189,6 +189,7 @@ add_library(host_cpu_opskernel_builder_static STATIC ${CPU_OPS_KERNEL_LIST}) | |||||
| target_compile_options(host_cpu_opskernel_builder_static PRIVATE | target_compile_options(host_cpu_opskernel_builder_static PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(host_cpu_opskernel_builder_static PRIVATE | target_compile_definitions(host_cpu_opskernel_builder_static PRIVATE | ||||
| @@ -22,6 +22,7 @@ target_compile_options(atc PRIVATE | |||||
| -Werror | -Werror | ||||
| -O2 | -O2 | ||||
| -Wno-deprecated-declarations | -Wno-deprecated-declarations | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(atc PRIVATE | target_compile_definitions(atc PRIVATE | ||||
| @@ -83,6 +84,7 @@ target_compile_options(atc_atc.bin PRIVATE | |||||
| -Werror | -Werror | ||||
| -O2 | -O2 | ||||
| -Wno-deprecated-declarations | -Wno-deprecated-declarations | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(atc_atc.bin PRIVATE | target_compile_definitions(atc_atc.bin PRIVATE | ||||
| @@ -149,6 +151,7 @@ target_compile_options(fwk_atc.bin PRIVATE | |||||
| -Werror | -Werror | ||||
| -O2 | -O2 | ||||
| -Wno-deprecated-declarations | -Wno-deprecated-declarations | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(fwk_atc.bin PRIVATE | target_compile_definitions(fwk_atc.bin PRIVATE | ||||
| @@ -8,6 +8,7 @@ add_library(engine SHARED ${SRC_LIST}) | |||||
| target_compile_options(engine PRIVATE | target_compile_options(engine PRIVATE | ||||
| -Werror | -Werror | ||||
| -fno-common | |||||
| ) | ) | ||||
| target_compile_definitions(engine PRIVATE | target_compile_definitions(engine PRIVATE | ||||
| @@ -1 +1 @@ | |||||
| Subproject commit e96b3d797ad7611357cc4f460e719a83aba3fc3d | |||||
| Subproject commit 3044f2da694cd61f5d9946709134cbcc849190e4 | |||||
| @@ -1 +1 @@ | |||||
| Subproject commit 34559943b6cb645042a87d99bc88ead016b15b64 | |||||
| Subproject commit ecde83dc9da0d58522b4a90c4d90c242c75011fd | |||||