|
|
|
@ -80,9 +80,6 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
message(FATAL_ERROR "This platform is not supported in train mode, build terminated")
|
|
|
|
|
endif()
|
|
|
|
|
elseif(PLATFORM STREQUAL "inference")
|
|
|
|
|
find_module(slog libslog.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(mmpa libmmpa.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(msprof libmsprof.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(adump_server libadump_server.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(runtime libruntime.so ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(runtime_compile libruntime_compile.so ${ASCEND_ATC_DIR})
|
|
|
|
@ -91,11 +88,30 @@ if (ENABLE_OPEN_SRC)
|
|
|
|
|
find_module(error_manager_static liberror_manager.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(msprofiler libmsprofiler.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(slog libslog.so ${ASCEND_ATC_DIR})
|
|
|
|
|
find_module(mmpa libmmpa.so ${ASCEND_ATC_DIR})
|
|
|
|
|
if(NOT PRODUCT STREQUAL "flr3")
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(msprof libmsprof.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
else()
|
|
|
|
|
find_module(msprof libmsprof.so ${ASCEND_ATC_DIR}) // 驱动包
|
|
|
|
|
endif()
|
|
|
|
|
elseif(PLATFORM STREQUAL "all")
|
|
|
|
|
find_module(slog libslog.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(mmpa libmmpa.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(msprof libmsprof.so ${ASCEND_DRIVER_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(runtime_compile libruntime_compile.so ${ASCEND_ATC_DIR})
|
|
|
|
|
find_module(resource libresource.so ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(error_manager liberror_manager.so ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(error_manager_static liberror_manager.a ${ASCEND_ACL_DIR})
|
|
|
|
|
find_module(msprofiler libmsprofiler.a ${ASCEND_RUNTIME_DIR})
|
|
|
|
|
find_module(ascend_hal_stub libascend_hal.so ${ASCEND_DRIVER_DIR})
|
|
|
|
|
find_module(ascendcl_static libascendcl.a ${ASCEND_ACL_DIR})
|
|
|
|
|
else()
|
|
|
|
|
message(FATAL_ERROR "Mode param is invalid, should be train or inference, build terminated")
|
|
|
|
|
message(FATAL_ERROR "PLATFORM param is invalid, should be train or inference, build terminated")
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|