Browse Source

remove all msprof, changed to static msprof

tags/v1.2.0
taoxiangdong 3 years ago
parent
commit
1f2d63f2b9
6 changed files with 13 additions and 23 deletions
  1. +5
    -9
      CMakeLists.txt
  2. +1
    -1
      ge/CMakeLists.txt
  3. +6
    -4
      ge/client/module.mk
  4. +0
    -1
      ge/executor/CMakeLists.txt
  5. +0
    -4
      ge/executor/module.mk
  6. +1
    -4
      ge/ge_runner.mk

+ 5
- 9
CMakeLists.txt View File

@@ -71,7 +71,7 @@ if (ENABLE_OPEN_SRC)
set(STATIC_ACL_LIB ${GE_LIB_PATH})
find_module(slog libslog.so ${GE_LIB_PATH})
find_module(static_mmpa libmmpa.a ${GE_LIB_PATH})
find_module(msprof libmsprof.so ${GE_LIB_PATH})
find_module(msprofiler libmsprofiler.a ${GE_LIB_PATH})
find_module(hccl libhccl.so ${GE_LIB_PATH})
find_module(adump_server libadump_server.a ${GE_LIB_PATH})
find_module(runtime libruntime.so ${GE_LIB_PATH})
@@ -80,20 +80,19 @@ if (ENABLE_OPEN_SRC)
find_module(error_manager liberror_manager.so ${GE_LIB_PATH})
find_module(ascend_hal_stub libascend_hal.so ${GE_LIB_PATH})
find_module(error_manager_static liberror_manager.a ${GE_LIB_PATH})
find_module(msprofiler libmsprofiler.a ${GE_LIB_PATH})
find_module(msprofiler_fwk libmsprofiler_fwk.a ${GE_LIB_PATH})
#find_module(ascendcl_static libascendcl.a ${GE_LIB_PATH})
else()
find_module(slog libslog.so ${ASCEND_ATC_DIR})
find_module(static_mmpa libmmpa.a ${ASCEND_ATC_DIR})
find_module(error_manager liberror_manager.so ${ASCEND_ATC_DIR})
if(PLATFORM STREQUAL "train")
find_module(msprof libmsprof.so ${ASCEND_DRIVER_COMMON_DIR})
find_module(hccl libhccl.so ${ASCEND_RUNTIME_DIR})
find_module(adump_server libadump_server.a ${ASCEND_RUNTIME_DIR})
find_module(runtime libruntime.so ${ASCEND_RUNTIME_DIR})
find_module(resource libresource.so ${ASCEND_RUNTIME_DIR})
find_module(error_manager liberror_manager.so ${ASCEND_RUNTIME_DIR})
find_module(msprofiler libmsprofiler.a ${ASCEND_RUNTIME_DIR})
find_module(msprofiler_fwk libmsprofiler_fwk.a ${ASCEND_RUNTIME_DIR})
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}/driver)
if(PRODUCT STREQUAL "flr3")
message(FATAL_ERROR "This platform is not supported in train mode, build terminated")
@@ -108,18 +107,15 @@ if (ENABLE_OPEN_SRC)
find_module(msprofiler libmsprofiler.a ${ASCEND_ACL_DIR})
#find_module(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
if(PRODUCT STREQUAL "flr3")
find_module(msprof libmsprof.so ${ASCEND_DRIVER_SHARE_DIR})
elseif(PRODUCT STREQUAL "flr1")
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}/driver)
find_module(msprof libmsprof.so ${ASCEND_DRIVER_COMMON_DIR})
elseif(PRODUCT STREQUAL "flr2")
# flr2 ascend_hal_stub limsprof ?
else()
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR})
find_module(msprof libmsprof.so ${ASCEND_DRIVER_DIR})
endif()
elseif(PLATFORM STREQUAL "all")
find_module(msprof libmsprof.so ${ASCEND_DRIVER_COMMON_DIR})
find_module(msprofiler libmsprofiler.a ${ASCEND_DRIVER_COMMON_DIR})
find_module(hccl libhccl.so ${ASCEND_RUNTIME_DIR})
find_module(adump_server libadump_server.a ${ASCEND_ACL_DIR})
find_module(runtime libruntime.so ${ASCEND_ACL_DIR})
@@ -127,7 +123,7 @@ if (ENABLE_OPEN_SRC)
find_module(resource libresource.so ${ASCEND_ATC_DIR})
find_module(error_manager liberror_manager.so ${ASCEND_ATC_DIR})
find_module(error_manager_static liberror_manager.a ${ASCEND_ACL_DIR})
find_module(msprofiler libmsprofiler.a ${ASCEND_ACL_DIR})
find_module(msprofiler_fwk libmsprofiler_fwk.a ${ASCEND_ACL_DIR})
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR}/driver)
#find_module(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
else()


+ 1
- 1
ge/CMakeLists.txt View File

@@ -779,7 +779,7 @@ target_link_libraries(opensrc_ascendcl PRIVATE
register_static
error_manager_static
adump_server
msprofiler_fwk
msprofiler
-Wl,--no-whole-archive
-Wl,--no-as-needed
c_sec


+ 6
- 4
ge/client/module.mk View File

@@ -68,9 +68,9 @@ LOCAL_SHARED_LIBRARIES := \
libgraph \
libregister \
libge_compiler \
libge_common \
libmsprof
libge_common

LOCAL_STATIC_LIBRARIES += libmsprofiler_fwk \


LOCAL_LDFLAGS := -lrt -ldl
@@ -103,8 +103,10 @@ LOCAL_SHARED_LIBRARIES := \
libregister \
libruntime \
libge_compiler \
libge_common \
libmsprof
libge_common


LOCAL_STATIC_LIBRARIES += libmsprofiler_fwk \


LOCAL_LDFLAGS := -lrt -ldl


+ 0
- 1
ge/executor/CMakeLists.txt View File

@@ -245,7 +245,6 @@ target_link_libraries(ge_executor_shared PRIVATE
mmpa
graph
register
msprof
error_manager
ascend_hal_stub
ascend_protobuf


+ 0
- 4
ge/executor/module.mk View File

@@ -178,7 +178,6 @@ local_ge_executor_shared_library := \
libmmpa \
libgraph \
libregister \
libmsprof \
liberror_manager \

local_ge_executor_ldflags := -lrt -ldl \
@@ -235,7 +234,6 @@ LOCAL_SHARED_LIBRARIES := \
libmmpa \
libgraph \
libregister \
libmsprof \
liberror_manager \
stub/libascend_hal \

@@ -273,7 +271,6 @@ LOCAL_SHARED_LIBRARIES := \
libruntime \
libslog \
libmmpa \
libmsprof \

LOCAL_LDFLAGS += $(local_ge_executor_ldflags)

@@ -305,7 +302,6 @@ LOCAL_SHARED_LIBRARIES := \
libruntime \
libslog \
libmmpa \
libmsprof \

ifeq ($(device_os),android)
LOCAL_LDFLAGS += -ldl


+ 1
- 4
ge/ge_runner.mk View File

@@ -372,7 +372,7 @@ LOCAL_SRC_FILES += $(LIBCLIENT_LOCAL_SRC_FILES)

LOCAL_STATIC_LIBRARIES := libge_memory \
libadump_server \
libmsprofiler \
libmsprofiler_fwk \
libmmpa \

LOCAL_SHARED_LIBRARIES := \
@@ -382,7 +382,6 @@ LOCAL_SHARED_LIBRARIES := \
libgraph \
libregister \
libge_common \
libmsprof \
liberror_manager \

LOCAL_LDFLAGS := -lrt -ldl
@@ -464,7 +463,6 @@ LOCAL_SHARED_LIBRARIES := \
libc_sec \
libslog \
libmmpa \
libmsprof \

LOCAL_LDFLAGS := -lrt -ldl

@@ -497,7 +495,6 @@ LOCAL_SHARED_LIBRARIES := \
libc_sec \
libslog \
libmmpa \
libmsprof \

LOCAL_LDFLAGS := -lrt -ldl



Loading…
Cancel
Save