Browse Source

update build.sh

tags/v1.1.0
taoxiangdong 4 years ago
parent
commit
a621354f6e
2 changed files with 11 additions and 2 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +10
    -1
      build.sh

+ 1
- 1
CMakeLists.txt View File

@@ -78,7 +78,7 @@ if (ENABLE_OPEN_SRC)
if(PRODUCT STREQUAL "flr3")
message(FATAL_ERROR "This platform is not supported in train mode, build terminated")
endif()
else if(PLATFORM STREQUAL "inference")
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})


+ 10
- 1
build.sh View File

@@ -134,7 +134,16 @@ build_graphengine()
echo "execute command: cmake ${CMAKE_ARGS} .. failed."
return 1
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 ]
then
echo "execute command: make ${VERBOSE} -j${THREAD_NUM} && make install failed."


Loading…
Cancel
Save