@@ -78,7 +78,7 @@ if (ENABLE_OPEN_SRC) | |||||
if(PRODUCT STREQUAL "flr3") | if(PRODUCT STREQUAL "flr3") | ||||
message(FATAL_ERROR "This platform is not supported in train mode, build terminated") | message(FATAL_ERROR "This platform is not supported in train mode, build terminated") | ||||
endif() | endif() | ||||
else if(PLATFORM STREQUAL "inference") | |||||
elseif(PLATFORM STREQUAL "inference") | |||||
find_module(slog libslog.so ${ASCEND_DRIVER_DIR}) | find_module(slog libslog.so ${ASCEND_DRIVER_DIR}) | ||||
find_module(mmpa libmmpa.so ${ASCEND_DRIVER_DIR}) | find_module(mmpa libmmpa.so ${ASCEND_DRIVER_DIR}) | ||||
find_module(msprof libmsprof.so ${ASCEND_DRIVER_DIR}) | find_module(msprof libmsprof.so ${ASCEND_DRIVER_DIR}) | ||||
@@ -134,7 +134,16 @@ build_graphengine() | |||||
echo "execute command: cmake ${CMAKE_ARGS} .. failed." | echo "execute command: cmake ${CMAKE_ARGS} .. failed." | ||||
return 1 | return 1 | ||||
fi | fi | ||||
make ${VERBOSE} -j${THREAD_NUM} && make install | |||||
COMMON_TARGET="ge_common engine fmk_parser parser_common _caffe_parser fmk_onnx_parser graph register " | |||||
TARGET=${COMMON_TARGET} | |||||
if [ "x${PLATFORM}" = "xtrain" ] | |||||
then | |||||
TARGET="ge_runner ge_local_engine ge_local_opskernel_builder host_cpu_engine host_cpu_opskernel_builder ${TARGET}" | |||||
elif [ "x${PLATFORM}" = "xinference" ] | |||||
TARGET="ge_compiler atc_ge_local_engine atc_ge_local_opskernel_builder atc_host_cpu_engine atc_host_cpu_opskernel_builder atc opensrc_ascendcl ${TARGET}" | |||||
fi | |||||
make ${VERBOSE} -j${THREAD_NUM} ${TARGET} && make install | |||||
if [ $? -ne 0 ] | if [ $? -ne 0 ] | ||||
then | then | ||||
echo "execute command: make ${VERBOSE} -j${THREAD_NUM} && make install failed." | echo "execute command: make ${VERBOSE} -j${THREAD_NUM} && make install failed." | ||||